Skip to content

Further theme system developments#5998

Open
ssddanbrown wants to merge 12 commits intodevelopmentfrom
further_theme_development
Open

Further theme system developments#5998
ssddanbrown wants to merge 12 commits intodevelopmentfrom
further_theme_development

Conversation

@ssddanbrown
Copy link
Member

@ssddanbrown ssddanbrown commented Jan 26, 2026

Additions

  • Before/After view include support.
  • Modular hack support - Theme Modules
  • Module fetch format/system.

Ideas

  • Abstract usage of THEME_* config env options?
  • Address view cache handling with before/after view system?

Todo

  • Testing for before/after view include support.
  • Theme system doc updates for new registerViewRenderBefore and registerViewRenderAfter methods.
  • Theme system doc updates for modules.
  • Testing for all theme modules systems.
  • Document module ZIP format.
  • Install Module Command - Manual Testing
  • Install Module Command - PHP Unit Coverage

Doc Updates

TODO

Within the responsibility of the theme service instead
of being part of the app configuration.
@ssddanbrown ssddanbrown added this to the Next Feature Release milestone Jan 26, 2026
@ssddanbrown ssddanbrown self-assigned this Jan 26, 2026
Adds a registration system via the logical theme system, to tell
BookStack about views to render before or after a specific template
is included in the system.
Changed the system out to be a theme event instead of method, to align
with other registration events, and so that the theme view work can
better be contained in its own class.
Not yet tested at all, either manually or via PHPUnit
- Added (limited) redirect handling to module downloads.
- Adjusted wording/text for consistency and clarity.
- Fixed scenarios where process was not stopped on error.
- Fixed module folder creation check/logic.
- Added better failed request handling to module downloads.
- Updated download response streaming to monitor/limit download size.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Development

Successfully merging this pull request may close these issues.

1 participant