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

Extending fields - documentation

admin first-time plugins

Started by arman 6 years ago · 0 replies · 612 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 Andy Miller, 3 days ago
0 65 3 days ago
General · by lynbor, 4 weeks ago
3 409 1 week ago
General · by lynbor, 2 weeks ago
7 519 1 week ago
General · by Harry, 1 week ago
0 142 1 week ago
General · by Old Man Umby, 4 weeks ago
2 287 3 weeks ago