Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TOC is missing when displaying a particular page revision #109

Open
annda opened this issue Mar 25, 2024 · 0 comments
Open

TOC is missing when displaying a particular page revision #109

annda opened this issue Mar 25, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@annda
Copy link
Contributor

annda commented Mar 25, 2024

Issue Description

When you open a particular page revision from page history, the Table of Contents is not rendered.

This is caused by a check for $REV in DokuWiki core
https://github.com/dokuwiki/dokuwiki/blob/bcedcbabaeed53ef96a52034226c5be6d16f07d3/inc/template.php#L153

Because SprintDoc renders the TOC separately from the main page content, it needs to make sure the TOC gets created, e.g. by populating the $TOC global variable.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant