Skip to content
Grav 2.1 is out: every page speaks Markdown. Read the announcement →

Add tab to admin panel > configuration?

Started by koa 3 years ago · 5 replies · 712 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 complanar, 6 days ago
6 140 16 hours ago
Support · by Rick Beebe, 6 days ago
2 100 2 days ago
Support · by blu3prince, 3 days ago
0 52 3 days ago
Support · by alex, 4 days ago
2 92 3 days ago
Support · by Marcel, 2 weeks ago
1 143 4 days ago