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

Enhancement suggestion: namespace title in sidebar #148

Open
sinkva opened this issue May 8, 2023 · 1 comment
Open

Enhancement suggestion: namespace title in sidebar #148

sinkva opened this issue May 8, 2023 · 1 comment
Labels
candidateForNewcomers could be a good task for people not familiar yet with the codebase of the plugin

Comments

@sinkva
Copy link

sinkva commented May 8, 2023

nspages has the "-h1" option to display the first "h1" for each page in the namespace.
The "-tree" option gives a nice vertical listing.
But in the sidebar, the namespace itself is listed as the raw name.

Enhancement suggestion: For nspages in the sidebar, add an option (e.g., -ns_h1) to look in the "start" page (that is, the default namespace page name), and display the first h1 title found. If the namespace doesn't contain a default page, or if the default page doesn't have an h1, then use the raw namespace name.

@gturri gturri added the candidateForNewcomers could be a good task for people not familiar yet with the codebase of the plugin label May 8, 2023
@DrKlipper
Copy link

This is also an issue if you use the -sidebar option.
I use this für the sidebar <nspages -sidebar -tree -h1 -subns -nopages -textPages="" -textNs="" -r1>

And if I click on one Namespace I got the following:
grafik

The start page for that namespace has a H1 line at first:
====== 3D Druck ======

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
candidateForNewcomers could be a good task for people not familiar yet with the codebase of the plugin
Projects
None yet
Development

No branches or pull requests

3 participants