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.

General

Extending fields - documentation

admin first-time plugins

Started by arman 6 years ago · 0 replies · 429 views
6 years ago

Hi everyone,

I'm trying to learn how to extend the admin panel by adding new fields, I followed the documentation to learn how to create a plugin, and I looked at some existing plugin to understand the "event system". This is very clear.
But regarding the page "extending", I don't really understand how to proceed, once I created PLUGIN_TEMPLATES/forms/fields/range/range.html.twig, I feel like I miss some information to fully understand this, as I'm still learning grav.
Do I need to add anything in mypluging.php ? In order to activate my fields.

Maybe it exists a very simple example on github allowing me to understand the way to do that.

And I be more then happy to contribute to the documentation of this topic.

Thanks a lot,
Cheers

Suggested topics

Topic Participants Replies Views Activity
General · by Jerry Hunt, 4 days ago
2 82 10 hours ago
General · by pamtbaau, 16 hours ago
1 53 15 hours ago
General · by Andy Miller, 1 day ago
0 45 1 day ago
General · by Marcel, 12 months ago
6 347 5 days ago
General · by Duc , 5 days ago
3 41 5 days ago