Add theme category in settings page #4993

Closed
opened 2026-02-05 09:32:04 +03:00 by OVERLORD · 2 comments
Owner

Originally created by @LachTrip on GitHub (Oct 10, 2024).

Attempted Debugging

  • I have read the debugging page

Searched GitHub Issues

  • I have searched GitHub for the issue.

Describe the Scenario

Trying to make an additional settings page for my bookstack theme. I can add a new category to settings.layout and have a custom settings page, but to be able to access it I need to add an entry to the settingCategories in app/Settings/SettingController.php, which does not seem possible through current theming options.

Exact BookStack Version

v24.03-dev

Log Content

No response

Hosting Environment

Debian docker

Originally created by @LachTrip on GitHub (Oct 10, 2024). ### Attempted Debugging - [X] I have read the debugging page ### Searched GitHub Issues - [X] I have searched GitHub for the issue. ### Describe the Scenario Trying to make an additional settings page for my bookstack theme. I can add a new category to settings.layout and have a custom settings page, but to be able to access it I need to add an entry to the settingCategories in app/Settings/SettingController.php, which does not seem possible through current theming options. ### Exact BookStack Version v24.03-dev ### Log Content _No response_ ### Hosting Environment Debian docker
OVERLORD added the 🐕 Support label 2026-02-05 09:32:04 +03:00
Author
Owner

@ssddanbrown commented on GitHub (Oct 10, 2024):

Hi @LachTrip,
Yeah, the categories are not made customizable in any way.

I guess we could change this up so, instead of validating the categories by fixed array, we could validate them by checking for an existing matching view file. Would probably be best to move the existing setting category layouts into their own view folder though to prevent any pollution in that respect.

@ssddanbrown commented on GitHub (Oct 10, 2024): Hi @LachTrip, Yeah, the categories are not made customizable in any way. I guess we could change this up so, instead of validating the categories by fixed array, we could validate them by checking for an existing matching view file. Would probably be best to move the existing setting category layouts into their own view folder though to prevent any pollution in that respect.
Author
Owner

@ssddanbrown commented on GitHub (Oct 11, 2024):

Now achieved via your PR #5255, thanks again @LachTrip!

@ssddanbrown commented on GitHub (Oct 11, 2024): Now achieved via your PR #5255, thanks again @LachTrip!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/BookStack#4993