Skip to content
● Grav 2.2 is out: 2x faster cold starts and 96% less memory on big sites. Read the announcement →

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

admin

Started by muco 9 years ago · 3 replies · 905 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 renedebaaij, 13 hours ago
0 17 13 hours ago
Plugins · by complanar, 2 weeks ago
6 379 2 weeks ago
Plugins · by BenLaKnet, 2 weeks ago
1 197 2 weeks ago
Plugins · by complanar, 1 month ago
2 473 4 weeks ago
Plugins · by Vladimir Novak, 2 months ago
3 750 2 months ago