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

Add tab to admin panel > configuration?

Started by koa 3 years ago · 5 replies · 778 views
3 years ago

Pretty new to grav, I want to add a tab under configuration (system, site, media, security, info, <<new tab here>>) but not sure how. Is there an easy way to go about adding one?

Thanks

3 years ago

@hoernerfranz,

you need to create a new yaml file in the user/config Folder, e.g. newtab.yaml.

  • Have you tested your answer?
  • How will Admin know which sections and fields the tab should contain?

the question, however, is: what do you expect to achieve with this ?

Good question because the solution will depend on the answer to this question.

because, just a new tab with some entries will not do anything useful 😃

That's quite right.

last edited 07/16/23 by pamtbaau
3 years ago

@pamtbaau ,
no, I did not test my first answer, because from the 2nd and 3rd, it was clear that this would not do anything useful on its own.
I just supposed tabs are directly related to existing yaml files in that folder.
but, as now tested, a newtab.yaml file will just have no affect at all, which makes sense 😄

3 years ago

ok, with that intention, you should IMHO really create a config page for your Theme and not try to modify the Grav Admin page.

Suggested topics

Topic Participants Replies Views Activity
Support · by webmasterodp, 1 week ago
4 162 1 week ago
Support · by nwhitfield, 1 week ago
2 142 1 week ago
Support · by stell, 3 weeks ago
5 373 2 weeks ago
Support · by gravinator, 1 month ago
5 566 2 weeks ago
Support · by Gravver, 3 weeks ago
6 354 3 weeks ago