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

Show some categories only to logged in members #221

Open
syntaxys opened this issue Sep 18, 2022 · 3 comments
Open

Show some categories only to logged in members #221

syntaxys opened this issue Sep 18, 2022 · 3 comments

Comments

@syntaxys
Copy link

It would be very useful, if it's possible to show some categories in frontend only to specific members group. I couldn't find a way to handle that with the current tools. Would it be a big deal to realize it?

Regards
Achim

@qzminski
Copy link
Member

Thank you for the suggestion, but I think it's too much of an edge use case to add it to the extension. I will leave the ticket open, though. If there are more votes on it, I will consider implementing it.

@asaage
Copy link
Contributor

asaage commented Sep 19, 2022

I couldn't find a way to handle that with the current tools.

You should be able to do that with the help of separate news achives and then limit the selection per archive.
Unless you only want to restrict the categories but not the news itself you would need those anyway right?

@syntaxys
Copy link
Author

syntaxys commented Sep 19, 2022

This is not possible in this way. If a category is visible and set at only one post, then it is visible in the category list for all. I do not want to maintain 2 archives with identical posts, that is too much effort. I only want to provide more (private) filters to logged in members.

EDIT / I just tried it again:
With the frontend template "Cumulative category filter" I can offer two different configurations. One with less categories is shown to guests, the one with more (private) categories is shown to logged in members. Great, that's the half way done!
But if I output a category list in the template „news_short.html5“ with i. e. <p class="categories">Categories: <?= implode(', ', $this->categoriesList) ?></p>, the invisible categories are always there too, even if I setup the list for the module too. So is it a bug or do I have to change something?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

3 participants