Skip to main content
2 of 2
replaced http://craftcms.stackexchange.com/ with https://craftcms.stackexchange.com/

Based on https://craftcms.com/docs/lightswitch-fields and https://craftcms.stackexchange.com/a/352/5134:

{% if entry.lightswitchFieldHandle %}
    {% if currentUser %}
        Display entry that only logged users can see
    {% endif %}
{% else %}
    Display entry that anyone can see
{% endif %}
Michael
  • 131
  • 3