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

Add tab to admin panel > configuration?

Started by koa 3 years ago · 5 replies · 664 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 Paul Hodges, 4 weeks ago
19 485 5 days ago
Support · by Lauw, 7 days ago
2 99 7 days ago
Support · by Anna, 3 weeks ago
4 426 1 week ago
Support · by gtx, 4 weeks ago
4 377 3 weeks ago
Support · by Anna, 1 month ago
9 484 3 weeks ago