Hi, Im using the code example posted here:
http://www.fatfreeinteractive.com/blog/post-title/create-breadcrumb-navigation-in-expression-engine
{exp:channel:entries channel="{segment_1}" limit="1"}
{if '{segment_3}' != ""}
<a href="http://{path={segment_1}}">{channel}</a> »
{title}
{if:elseif '{segment_2}' == ""}
<a href="http://{path={segment_2}}">{channel}</a> »
{title}
{channel}
{/if}
{/exp:channel:entries}</div>I have the channels created and this seems only to work for segment 1 of the url.
If I go to:
example.com/segment1/
The breadcrumb code works.
If I go to:
example.com/segment1/segment2/
It only shows a link to the homepage.
What is wrong with that code?