codefog/contao-news_categories

Show some categories only to logged in members

syntaxys opened this issue · 3 comments

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

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.

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?

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?