Skip to content
● Meet Grav Guard: keep every Grav site you run secure and up to date, all from one place. Free for up to 3 sites. Read more →

Add tab to admin panel > configuration?

Started by koa 3 years ago · 5 replies · 900 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 TomW, 2 weeks ago
8 227 9 hours ago
Support · by alex, 2 months ago
8 667 24 hours ago
Support · by Supple, 5 days ago
1 98 1 day ago
Support · by TomW, 1 week ago
3 159 3 days ago
Support · by TomW, 6 days ago
2 106 6 days ago