Skip to content

Instantly share code, notes, and snippets.

@elivz
Created July 3, 2015 20:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save elivz/7f54f3d3cabef16bdeac to your computer and use it in GitHub Desktop.
Save elivz/7f54f3d3cabef16bdeac to your computer and use it in GitHub Desktop.
{if logged_in}
{preload_replace:entry_status='open'}
{if:else}
{preload_replace:entry_status='closed'}
{/if}
{exp:channel:entries status="{entry_status}"}
...
{/exp:channel:entries}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment