I have the following code for a news page:
{header}
<section>
<article id="inner_left">
</article>
<article id="inner_headline">
<h2>NEWS</h2>
<p> </article><br />
<article id="inner_right"><br />
{if segment_2 == ''}<br />
{exp:channel:entries channel="news" disable="categories|member_data|pagination|category_fields" orderby="date" sort="asc"}<br />
<h1>{title}</h1><br />
</p><h3>{entry_date format="%F %d, %Y"}</h3>
<p> <hr><br />
{summary}<br />
<a href="http://{title_permalink=">Read more…</a><br />
{/exp:channel:entries}<br />
{/if}<br />
{if segment_2}<br />
<br />
{exp:channel:entries channel="news" disable="categories|member_data|pagination|category_fields"}<br />
<h1>{title}</h1><br />
</p><h3>{entry_date format="%F %d, %Y"}</h3>
<p> {body}<br />
<a href="/news/">Back to news.</a><br />
{/exp:channel:entries}<br />
<br />
{/if}<br />
</article><br />
</section><br />
{footer}The footer is a snippet that also contains a channel entry. Everything works fine until I click the “Read more…” link in the above code. When the second conditional fires, the channel entry in the snippet disappears.
Snippet:
<footer>
<article id="find_petsmart">
<ul>
<li><a href="#" target="_blank" rel="noopener">Store Locator</a></li>
</ul>
</article>
<article id="organix">
<ul>
<li><a href="#" target="_blank" rel="noopener">Learn More</a></li>
</ul>
</article>
<article id="tour">
<ul>
{exp:channel:entries channel="bentley_on_tour" disable="categories|member_data|pagination|category_fields" orderby="start_date" sort="asc" limit="3"}
<li>{start_date format="%m/%d/%y"} | <a href="/meet_bentley/bentley_on_tour">{tour_location}</a></li>
{/exp:channel:entries}
</ul>
</article>
</footer>
</div>
</div>
</body>
</html>Not sure what I’m missing here.