1

I have a page that hides some amount of page content for free viewers. We have a certain category of 'sample' articles which should be available for everyone. Is there an if clause which basically reads if category = x show all content regardless of membership member?

1 Answer 1

3

Not exactly, but you could put your Channel Entries tag into an embedded template, and use a member group ID conditional to send it the parameters you want based on the visitors membership status.

{if logged_in_group_id == 7}
    {embed="template_group/_template_name" categories="1|2|3|4"}
{if:else}
    {embed="template_group/_template_name" categories="1"}
{/if}

And on the template_group/_template_name embedded template:

{exp:channel:entries channel="news" category="{embed:categories}"}
0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.