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

Tags plugin: second level index – group pages by other tags #6463

Closed
4 tasks done
alanpt opened this issue Dec 7, 2023 · 3 comments
Closed
4 tasks done

Tags plugin: second level index – group pages by other tags #6463

alanpt opened this issue Dec 7, 2023 · 3 comments
Labels
change request Issue requests a new feature or improvement

Comments

@alanpt
Copy link

alanpt commented Dec 7, 2023

Context

Our documents are tagged by one or more feature, functionality. And stored within folders (howto, tutorial, explantion, resource). This is easy to browse through and works well for searching.

Description

When I go to a custom tags_extra_files page for one of those feature or functionality tags, I would like to see all the documents grouped by the other tags those documents share. Currently it only lists the pages with that tag ungrouped.

This would make it very easy to automate useful connections.

Also if we had a tags_extra_file page for #newfeature, we would have all the new features grouped by feature or functionality.

I thought this might be a more mkdocs way of doing things instead of inserting something like this in to pages: {{list of pages tagged #tutorial, #callcenter}} - which I would be just as happy being able to do.

Related links

Use Cases

For example this list of documents with the tags:

"how_to_use_the_callcenter.md" tagged #callcenter and #howto
"about_the_callcenter.md" tagged #callcenter and #explanation
"add_users_to_callcenter.md" tagged #callcenter and #howto and #newfeature

When I go to the tag page defined in tags_extra_files called callcentertags.md it would list all the pages with #callcenter but the items are grouped within their other tags.

So the callcentertags.md file would show a list like this:

Callcenter

#howto
how_to_use_the_callcenter.md
add_users_to_the_callcenter.md

#explanation
about_the_callcenter.md

#newfeature
add_users_to_the_callcenter.md

Visuals

No response

Before submitting

@alanpt alanpt changed the title On custom tag pages allow pages to be grouped by tags. In tags_extra_files pages allow pages to be grouped by tags. Dec 8, 2023
@squidfunk
Copy link
Owner

Thanks for suggesting. Let's let that request sit here for a while and see if others find it useful as well. Regardless, we'll see how we can maybe make this happen when we work on the tags plugin again. We're planning to make the tags plugin much more flexible in the future, but it's currently not a priority.

@squidfunk squidfunk added the change request Issue requests a new feature or improvement label Dec 8, 2023
@squidfunk squidfunk changed the title In tags_extra_files pages allow pages to be grouped by tags. Tags plugin: second level index – group pages by other tags Dec 8, 2023
@squidfunk
Copy link
Owner

This was implemented as a third party plugin!
https://github.com/alanpt/mkdocs-tag-navigation-generator

@squidfunk
Copy link
Owner

Please see the announcement in #6517.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
change request Issue requests a new feature or improvement
Projects
None yet
Development

No branches or pull requests

2 participants