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

[FEATURE] Option to only list tags of a particular category in an index page #40

Open
Andre601 opened this issue Nov 19, 2022 · 1 comment
Labels
enhancement New feature or request

Comments

@Andre601
Copy link
Contributor

From my testing are index pages for tags always listing all used tags across all posts. This includes index pages that have been defined for specific categories.

While this may be useful and/or desireable by people is it also a bit frustrating when a tags page set in /reviews/tags lists tags used from the /posts/ directory.

When possible should there be an option to tell the plugin to only list tags from posts within a certain category.
The best way is probably to have an aproach similar to the {{ blog_content }} placeholder where you can define a category. This means you could set {{ tag_content reviews }} and it would only list tags used in posts for the category reviews.

The question I have right now is: What to do with global pages?
My current setup has the main posts page as the default/global setting and reviews as a category. It would be optimal for me to have the tags page for posts only include those of that category, but since it's global would it probs be displaying all, including those of other categories...

Perhaps a system could be worked out where you can define multiple categories to be included or excluded?
Like {{ tag_content !reviews }} to include tags not used in the reviews category or like {{ tag_content reviews | other }} to include tags from the categories reviews and other.

For now a way to define a category would be ideal for my case here.

@Andre601 Andre601 changed the title [FEATURE] Per-category tags page [FEATURE] Option to only list tags of a particular category in an index page Nov 19, 2022
@liang2kl
Copy link
Owner

I think it's worth implementing this.
But since I don't have much time at the moment, I might not be able to do it right now : (

@liang2kl liang2kl added the enhancement New feature or request label Nov 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants