This Directus extension allows you to copy the current value of a field into another field within the same collection.
- Clone or download this repository.
- Copy the contents of the
distfolder into your Directusextentions/interfacesfolder. - Restart your Directus server.
- Open your Directus project.
- Go to the collection where you want to enable the copy functionality.
- Edit the collection schema and add a new field of type "Copy to Field".
- Configure the destination field for the copy operation.
- Save the changes and start using the extension.
The extension provides the following configuration options:
- Destination Field: The field where the value will be copied to.
Let's say you have a collection called "Products" with two fields: "Name" and "Description". You want to copy the value of the "Name" field into the "Description" field.
- Edit the "Products" collection schema.
- Add a new field "name" of type "Copy to Field".
- Configure the destination field as "description".
- Save the changes.
- Now, an icon will appear next to the "Name" field. Clicking on it will copy the value to the "Destination" field.
Contributions are welcome! If you have any suggestions, bug reports, or feature requests, please open an issue or submit a pull request.
This project is licensed under the MIT License.