1

When the entry is disabled, the Live Preview only shows things which are outer of the main loop. This is a part of my code:

{% include "header.html" %}
{% for entry in craft.entries.section('flashback') %}
    <section id="intro" style="background-image: url('{{ entry.heroImage.first().getUrl() }}');">
        <h1>Flashback</h1>
    </section>
...
{% endfor %}
{% include 'footer.html' %}

The header and the footer are visible but the section and headline not.

  • Can you elaborate with a bit more template code? "outer of the main loop" sounds like some things are displaying outside of a loop and things inside aren't? It'd be helpful to point out exactly what's happening in the code and what you're expecting to see. – Brad Bell May 17 '16 at 20:50
  • Done. I hope this helps – Jonathan Schiffner May 17 '16 at 21:03

1 Answers1

3

Change:

{% for entry in craft.entries.section('flashback') %}

To:

{% for entry in craft.entries.section('flashback').status(null) %}

The 2nd one will grab all entries regardless of their enabled/disabled status.

Brad Bell
  • 67,440
  • 6
  • 73
  • 143