The whole page is disabled in the backend. Like in this screenshot:
Now I can't see anything in the Live Preview.
My code starts with: {% for entry in craft.entries.section('aboutus') %}
If I set .status(null)
I see everything in the Live Preview, but also the entries which are disabled.
So is it possible to show a disabled page in a Live Preview but not the disabled entries of this page?
UPDATE
In the Live Preview I can see all outside of this for loop {% for entry in craft.entries.section('aboutus') %}
but nothing inside.
I uploaded my code here.
entry
your actual variable? Craft actually definesentry
as the current entry so if you're trying to use some of the current entry's data inside the loop, you'll get whatever entry thefor
loop is iterating over (and possibly a syntax error). You might want to change that toaboutUsCurrentEntry
or something. I know Live Preview uses theentry
variable as well so you might be bumping up against a conflict there...