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

Community guidelines

Please keep discussions civil and on-topic. Repeated violations may lead to a temporary ban.

Support

Add tab to admin panel > configuration?

Started by koa 3 years ago · 5 replies · 548 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

you need to create a new yaml file in the user/config Folder, e.g. newtab.yaml.
the question, however, is: what do you expect to achieve with this ?
because, just a new tab with some entries will not do anything useful 😃

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

Playing around mostly but, I wanted to add a tab with radio button list of Bootstrap icons to select an icon in the panel for a Bootstrap theme I’m working on (I tried doing a drop down list in the theme config but for some reason could not get it to display all options and was kind of, clunky at ~2,000 options lol)

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 Thomas, 1 week ago
3 94 3 hours ago
Support · by Anna, 3 days ago
2 94 24 hours ago
Support · by Justin Young, 1 day ago
1 64 1 day ago
Support · by Duc , 1 week ago
2 100 6 days ago
Support · by Colin Hume, 1 week ago
2 91 6 days ago