Keyword

Specific articles with multiple usergroups

  • Bam Bam
  • Bam Bam's Avatar Topic Author
  • Offline
  • Senior Member
More
7 years 9 months ago - 7 years 9 months ago #154906 by Bam Bam
Hey everybody,
I got following structure in my usergroups:

|-public
|-group1
|--group2
|-super users

There are different articles for group1 that group2 can see, too. That is ok. But now I'd like to make a menu item showing only the articles of group2, articles of group1 NOT included. Any ideas how to do that?
I already tried templating with mySQL-queries, filtering via "php if" with access levels. It works, but then the pagination is wrong. :(

Any advice is welcome.

Thanks
Matthew.
Last edit: 7 years 9 months ago by Bam Bam.

Please Log in or Create an account to join the conversation.

  • JoomlaWorks Support Team
  • JoomlaWorks Support Team's Avatar
  • Offline
  • Elite Member
More
7 years 9 months ago #154923 by JoomlaWorks Support Team
Replied by JoomlaWorks Support Team on topic Specific articles with multiple usergroups
Hi,

You can create a K2 plugin that modifies the query before execution. Check also the following link
getk2.org/extend/extensions/90-example-k2-plugin-for-developers

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

Please Log in or Create an account to join the conversation.

  • Bam Bam
  • Bam Bam's Avatar Topic Author
  • Offline
  • Senior Member
More
7 years 9 months ago #154973 by Bam Bam
Replied by Bam Bam on topic Specific articles with multiple usergroups
Thanks for the tip. I didn't know this plugin. I'll have a look at it.
Thank you!

Please Log in or Create an account to join the conversation.


Powered by Kunena Forum