Skip to content
Grav 2.1 is out: every page speaks Markdown. Read the announcement →

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

admin

Started by muco 9 years ago · 3 replies · 848 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 complanar, 2 weeks ago
2 265 5 days ago
Plugins · by Vladimir Novak, 1 month ago
3 597 1 month ago
Plugins · by Mathieu Lecouturier, 2 months ago
3 423 2 months ago
Plugins · by Slebeig, 3 months ago
1 533 2 months ago
Plugins · by Rene, 3 months ago
2 744 3 months ago