I’m super new to EE so I don’t quote understand channels, templates, etc. yet, but I’m learning as I go. I’m trying to add breadcrumbs to all of my pages (I only have 2 pages right now, Home and Contact), but haven’t been able to have any luck. I followed this tutorial: http://www.fatfreeinteractive.com/blog/post-title/create-breadcrumb-navigation-in-expression-engine.
As the tutorial says to do, I created a channel called “contact” and a template group with the same name, “contact.” The index page within the “contact” template has my full page code on it, including this breadcrumb code:
{exp:channel:entries channel="{segment_1}" limit="1"}
<a href="http://{site_url}">Home Page</a> »
{if '{segment_3}' != ""}
<a href="http://{path={segment_1}}">{channel}</a> »
{title}
{if:elseif '{segment_2}' == ""}
{channel}
{/if}
{/exp:channel:entries}The Contact page is only a second level page as I have no need for a drop down menu under Contact, but I still think it should end up showing “Home > Contact” and my page does not show anything at all.
Can someone please advise? Thanks so much!