Overview
The WP Slug Interface is a feature in Directus that provides a similar slug/permalink interface to WordPress. It allows users to easily create and update slugs or permalinks for their content in the Directus App.
Features
- Easy Installation: The WP Slug Interface can be installed in your Directus installation root with just a few simple steps.
- Create and Update Options: Users have the ability to enable or disable automatic updates based on content changes. The “Create” option enables automatic updates when creating a new item, while the “Update” option enables automatic updates when editing an existing item.
- Magic Wand Functionality: When automatic updates are disabled but there is a content change that differs from the template, a magic wand button will appear. Clicking this button will execute the automatic update.
- Interface Only: The WP Slug Interface is solely an interface and does not work when performing changes through the Directus API. It is designed for use within the Directus App.
Installation
To install the WP Slug Interface, follow these steps:
- Navigate to your Directus installation root.
- Restart Directus.
- Create a new standard field with a String type.
- Select “Slug” as the interface for the field.
Summary
The WP Slug Interface in Directus provides an easy-to-use slug/permalink interface similar to WordPress. It offers features such as automatic updates, a magic wand for manual updates, and simple installation. However, it is important to note that this interface is only available within the Directus App and does not work when making changes through the Directus API.