Questions tagged [lightswitch]
35 questions
19
votes
1 answer
How do I check if a lightswitch field is false?
I have a Resources page and an archived Resources page made up of entries. I want to show all current resources on the main page (this list should not include the archived ones) and on the archived page I only want to show only archived resources. I…
Carlos
- 193
- 5
5
votes
2 answers
Only allow one Lightswitch to be active at a time
I am working on a news section. There is a single featured news story so the lightswitch marked with ('1') displays the latest entry as the featured story.
Below this the rest of the entries are displayed so here I then display all other latest…
itisconor
- 73
- 5
0
votes
1 answer
Hiding specific items from public
So I want to hide certain items if a user is not logged into the website. I already have a custom lightswitch field on each of the items but I'm not sure on how to write the code for it. Can anyone help?
JustinTheeDude
- 95
- 1
- 8