I’ve done this several times before, but for some reason it’s not working for me. Can someone find any reason why this wouldn’t work?
Here’s the template:
{if segment_3 == ''}
<div id="content" class="perspectives">
<div id="left">
<h2>Perspectives</h2>
<p> <div><br />
{exp:channel:entries channel="perspectives" entry_id="56"}<br />
<h1>{title}</h1><br />
{exp:trunchtml chars="300" inline="..." ending="<a href='{path=site/comments}'>More »</a>"}{perspectives_body}{/exp:trunchtml}<br />
{/exp:channel:entries}<br />
</div><br />
</div><br />
<div id="right"><br />
{site_url}images/photos/perspectives.jpg<br />
</div><br />
<div id="bottom"><br />
<div><br />
{exp:channel:entries channel="perspectives" entry_id="57"}<br />
<h1>{title}</h1><br />
{exp:trunchtml chars="300" inline="..." ending="<a href='{path=site/comments}'>More »</a>"}{perspectives_body}{/exp:trunchtml}<br />
{/exp:channel:entries}<br />
</div><br />
<div><br />
{exp:channel:entries channel="perspectives" entry_id="58"}<br />
<h1>{title}</h1><br />
{exp:trunchtml chars="300" inline="..." ending="<a href='{path=site/comments}'>More »</a>"}{perspectives_body}{/exp:trunchtml}<br />
{/exp:channel:entries}<br />
</div><br />
</div><br />
</div><!--end content--><br />
{if:else}<br />
<div id="content" class="perspective"><br />
{exp:channel:entries channel="perspectives" limit="1"}<br />
<h1>{title}</h1><br />
{perspectives_body}<br />
{/exp:channel:entries}<br />
</div><!--end content--><br />
{/if}But whether or not I have anything in the third segment, it shows the page based on the “else” portion of the statement. See http://juisebox.com/fmg/index.php/insights/perspectives/. No third segment, but still only shows the title and body.
I’ve tried setting it up several ways. I tried:
{if segment_3}
{if segment_3 != ''}I’ve also cleared all of my caches. Nothing. Any suggestions?