{if logged_in} and {if logged_out} are parsed early, right?
So why doesn’t this work?
{exp:channel:entries
status="open"
channel="pages"
{if logged_out}search:public_content="=Yes"{/if}
dynamic="no"
}
{entry_id}:{title};
{/exp:channel:entries}- where public_content is the short name of a checkbox channel field which has the value ‘Yes’ if checked (and is set searchable in the channel field admin).
If I take out the {if logged_out}{/if} tags it’s OK & only returns pages marked public_content.
I’m using EE2.5.2.
Any ideas?