Skip to content
● Meet Grav Guard: keep every Grav site you run secure and up to date, all from one place. Free for up to 3 sites. Read more →

Backend (Admin Plugin): Ability to create/clone field on the admin site

admin

Started by muco 9 years ago · 3 replies · 1018 views
9 years ago

Hi guys,

lets assume, I have a custom field article1 like you can see on screenshot below

image|690x200

Is there a way, that a user can clone this field in admin panel to add a new article item for example? So there is no need for coding..

9 years ago

Which field? what are you trying to achieve?

9 years ago

As you can see on the screenshot I posted before, there is a textfield article1 under the label Articles.

What I want to achieve is, that an user (on the admin panel) can clone this field directly on the admin panel. So when I want to add a new article article2, then I don't have to do this with PHP, Twig or else.

9 years ago

That sounds like it would require a new custom field that handles the ability to 'copy' the current field and inject a new field into the form. Something along the lines of Array or List field, but just for a text field.

This does not exist today.

Suggested topics

Topic Participants Replies Views Activity
Plugins · by DrPen, 1 month ago
2 477 1 month ago
Plugins · by renedebaaij, 2 months ago
1 349 1 month ago
Plugins · by Thomas, 1 month ago
1 374 1 month ago
Plugins · by complanar, 2 months ago
6 698 2 months ago
Plugins · by BenLaKnet, 2 months ago
1 641 2 months ago