Skip to content
Grav 2.0 is officially stable. Read the announcement →

Community guidelines

Please keep discussions civil and on-topic. Repeated violations may lead to a temporary ban.

Plugins

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

admin

Started by muco 9 years ago · 3 replies · 673 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 Rene, 1 week ago
2 44 1 week ago
Plugins · by Xavier, 4 weeks ago
2 54 4 weeks ago
Plugins · by Luka Prinčič, 7 years ago
3 1181 1 month ago
Plugins · by Sebastian van de Meer, 1 month ago
1 48 1 month ago
Plugins · by PIERROT Alain, 2 months ago
3 73 2 months ago