<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: How to: Add Breadcrumb Navigation to your Concrete5 Site</title>
	<atom:link href="http://c5mix.com/blog/tutorials/how-to-add-breadcrumb-navigation-to-your-concrete5-site/feed" rel="self" type="application/rss+xml" />
	<link>http://c5mix.com/blog/tutorials/how-to-add-breadcrumb-navigation-to-your-concrete5-site</link>
	<description>concrete5 tutorials, themes, &#38; tips</description>
	<lastBuildDate>Fri, 27 Apr 2012 18:30:41 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
	<item>
		<title>By: Chris Seymour</title>
		<link>http://c5mix.com/blog/tutorials/how-to-add-breadcrumb-navigation-to-your-concrete5-site/comment-page-1#comment-26648</link>
		<dc:creator>Chris Seymour</dc:creator>
		<pubDate>Mon, 12 Apr 2010 13:21:18 +0000</pubDate>
		<guid isPermaLink="false">http://c5mix.com/blog/?p=5#comment-26648</guid>
		<description>Laurence,
This code is actually obsolete now. The latest version of concrete5 already comes with a breadcrumb template for the auto nav block.</description>
		<content:encoded><![CDATA[<p>Laurence,<br />
This code is actually obsolete now. The latest version of concrete5 already comes with a breadcrumb template for the auto nav block.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Laurence</title>
		<link>http://c5mix.com/blog/tutorials/how-to-add-breadcrumb-navigation-to-your-concrete5-site/comment-page-1#comment-26630</link>
		<dc:creator>Laurence</dc:creator>
		<pubDate>Fri, 09 Apr 2010 16:02:50 +0000</pubDate>
		<guid isPermaLink="false">http://c5mix.com/blog/?p=5#comment-26630</guid>
		<description>This code doesn&#039;t work when you try to compare versions - I get an error about redeclaring show_breadcrumb().</description>
		<content:encoded><![CDATA[<p>This code doesn&#8217;t work when you try to compare versions &#8211; I get an error about redeclaring show_breadcrumb().</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nate22</title>
		<link>http://c5mix.com/blog/tutorials/how-to-add-breadcrumb-navigation-to-your-concrete5-site/comment-page-1#comment-24437</link>
		<dc:creator>Nate22</dc:creator>
		<pubDate>Fri, 19 Mar 2010 21:00:34 +0000</pubDate>
		<guid isPermaLink="false">http://c5mix.com/blog/?p=5#comment-24437</guid>
		<description>Finally got all the code in the right place.

Here is the new updated breadcrumb with all the functionality it&#039;s supposed to have.

(hope it shows up. seems like your guestbook script interfered with the coding last time, maybe)...


generateNav();
	$nh = Loader::helper(&#039;navigation&#039;);
	$c = Page::getCurrentPage();
	$i = 0;
	
	
	
	foreach($aBlocks as $ni) {
		$_c = $ni-&gt;getCollectionObject();
		
		$pageLink = false;
		if ($_c-&gt;getCollectionAttributeValue(&#039;replace_link_with_first_in_nav&#039;)) {
			$subPage = $_c-&gt;getFirstChild();
			if ($subPage instanceof Page) {
			$pageLink = $nh-&gt;getLinkToCollection($subPage);
			}
		}
		if (!$pageLink) {
			$pageLink = $ni-&gt;getURL();
		}
		
		if (!$_c-&gt;getCollectionAttributeValue(&#039;exclude_nav&#039;)) {	
			if ($i &gt; 0) {
				print &#039; &gt; &#039;;
			}
			if ($c-&gt;getCollectionID() == $_c-&gt;getCollectionID()) { 
				echo($ni-&gt;getName());
			} else {
				echo(&#039;&lt;a href=&quot;&#039; . $pageLink . &#039;&quot; rel=&quot;nofollow&quot;&gt;&#039; . $ni-&gt;getName() . &#039;&lt;/a&gt;&#039;);
			}	
			$lastLevel = $thisLevel;
			$i++;
		}
		
		
		
	}
	
	$thisLevel = 0;</description>
		<content:encoded><![CDATA[<p>Finally got all the code in the right place.</p>
<p>Here is the new updated breadcrumb with all the functionality it&#8217;s supposed to have.</p>
<p>(hope it shows up. seems like your guestbook script interfered with the coding last time, maybe)&#8230;</p>
<p>generateNav();<br />
	$nh = Loader::helper(&#8216;navigation&#8217;);<br />
	$c = Page::getCurrentPage();<br />
	$i = 0;</p>
<p>	foreach($aBlocks as $ni) {<br />
		$_c = $ni-&gt;getCollectionObject();</p>
<p>		$pageLink = false;<br />
		if ($_c-&gt;getCollectionAttributeValue(&#8216;replace_link_with_first_in_nav&#8217;)) {<br />
			$subPage = $_c-&gt;getFirstChild();<br />
			if ($subPage instanceof Page) {<br />
			$pageLink = $nh-&gt;getLinkToCollection($subPage);<br />
			}<br />
		}<br />
		if (!$pageLink) {<br />
			$pageLink = $ni-&gt;getURL();<br />
		}</p>
<p>		if (!$_c-&gt;getCollectionAttributeValue(&#8216;exclude_nav&#8217;)) {<br />
			if ($i &gt; 0) {<br />
				print &#8216; &gt; &#8216;;<br />
			}<br />
			if ($c-&gt;getCollectionID() == $_c-&gt;getCollectionID()) {<br />
				echo($ni-&gt;getName());<br />
			} else {<br />
				echo(&#8216;<a href="' . $pageLink . '" rel="nofollow">&#8216; . $ni-&gt;getName() . &#8216;</a>&#8216;);<br />
			}<br />
			$lastLevel = $thisLevel;<br />
			$i++;<br />
		}</p>
<p>	}</p>
<p>	$thisLevel = 0;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nate22</title>
		<link>http://c5mix.com/blog/tutorials/how-to-add-breadcrumb-navigation-to-your-concrete5-site/comment-page-1#comment-24433</link>
		<dc:creator>Nate22</dc:creator>
		<pubDate>Fri, 19 Mar 2010 19:41:00 +0000</pubDate>
		<guid isPermaLink="false">http://c5mix.com/blog/?p=5#comment-24433</guid>
		<description>Yeah, it does look just like I want... HOWEVER, Andrew pointed out that the new default breadcrumb template does not include the &#039;replace_link_with_first_in_nav&#039; function. 

&quot;An oversight,&quot; he said, because the header_menu custom template does have it. The team just forgot to add it to the breadcrumb for some reason. I need this functionality and have no clue how to fix the code.

Here were Andrew&#039;s instructions to me, which I tried 5 different ways and could not get to work:


The change was only ever made to the main autonav
template and the header menu template, which was an oversight. You&#039;ll want
to add this code at the top

$nh = Loader::helper(&#039;navigation&#039;);

then inside the loop add

$pageLink = false;
 if ($_c-&gt;getCollectionAttributeValue(&#039;replace_link_with_first_in_nav&#039;)) {
$subPage = $_c-&gt;getFirstChild();
if ($subPage instanceof Page) {
$pageLink = $nh-&gt;getLinkToCollection($subPage);
}
}
 if (!$pageLink) {
$pageLink = $ni-&gt;getURL();
}


and finally change the link to print out

echo(&#039;&lt;a href=&quot;&#039; . $pageLink . &#039;&quot; rel=&quot;nofollow&quot;&gt;&#039; . $ni-&gt;getName() . &#039;&lt;/a&gt;&#039;);


So,</description>
		<content:encoded><![CDATA[<p>Yeah, it does look just like I want&#8230; HOWEVER, Andrew pointed out that the new default breadcrumb template does not include the &#8216;replace_link_with_first_in_nav&#8217; function. </p>
<p>&#8220;An oversight,&#8221; he said, because the header_menu custom template does have it. The team just forgot to add it to the breadcrumb for some reason. I need this functionality and have no clue how to fix the code.</p>
<p>Here were Andrew&#8217;s instructions to me, which I tried 5 different ways and could not get to work:</p>
<p>The change was only ever made to the main autonav<br />
template and the header menu template, which was an oversight. You&#8217;ll want<br />
to add this code at the top</p>
<p>$nh = Loader::helper(&#8216;navigation&#8217;);</p>
<p>then inside the loop add</p>
<p>$pageLink = false;<br />
 if ($_c-&gt;getCollectionAttributeValue(&#8216;replace_link_with_first_in_nav&#8217;)) {<br />
$subPage = $_c-&gt;getFirstChild();<br />
if ($subPage instanceof Page) {<br />
$pageLink = $nh-&gt;getLinkToCollection($subPage);<br />
}<br />
}<br />
 if (!$pageLink) {<br />
$pageLink = $ni-&gt;getURL();<br />
}</p>
<p>and finally change the link to print out</p>
<p>echo(&#8216;<a href="' . $pageLink . '" rel="nofollow">&#8216; . $ni-&gt;getName() . &#8216;</a>&#8216;);</p>
<p>So,</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chris Seymour</title>
		<link>http://c5mix.com/blog/tutorials/how-to-add-breadcrumb-navigation-to-your-concrete5-site/comment-page-1#comment-24430</link>
		<dc:creator>Chris Seymour</dc:creator>
		<pubDate>Fri, 19 Mar 2010 18:31:00 +0000</pubDate>
		<guid isPermaLink="false">http://c5mix.com/blog/?p=5#comment-24430</guid>
		<description>The breadcrumb.php template that comes with concrete5 should look just like you want (you can see it here on the OfficeSpace demo: http://c5.sineceramedia.com/about/). Did you actually apply the template by clicking on the block and choosing Custom Template and then picking Breadcrumb from the drop down?</description>
		<content:encoded><![CDATA[<p>The breadcrumb.php template that comes with concrete5 should look just like you want (you can see it here on the OfficeSpace demo: <a href="http://c5.sineceramedia.com/about/)" rel="nofollow">http://c5.sineceramedia.com/about/)</a>. Did you actually apply the template by clicking on the block and choosing Custom Template and then picking Breadcrumb from the drop down?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nate22</title>
		<link>http://c5mix.com/blog/tutorials/how-to-add-breadcrumb-navigation-to-your-concrete5-site/comment-page-1#comment-24424</link>
		<dc:creator>Nate22</dc:creator>
		<pubDate>Fri, 19 Mar 2010 16:55:07 +0000</pubDate>
		<guid isPermaLink="false">http://c5mix.com/blog/?p=5#comment-24424</guid>
		<description>However, since this is old, it may LOOK pretty, but it doesn&#039;t support the new function &#039;replace_link_with_first_in_nav&#039; which I need.</description>
		<content:encoded><![CDATA[<p>However, since this is old, it may LOOK pretty, but it doesn&#8217;t support the new function &#8216;replace_link_with_first_in_nav&#8217; which I need.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nate22</title>
		<link>http://c5mix.com/blog/tutorials/how-to-add-breadcrumb-navigation-to-your-concrete5-site/comment-page-1#comment-24401</link>
		<dc:creator>Nate22</dc:creator>
		<pubDate>Thu, 18 Mar 2010 19:31:30 +0000</pubDate>
		<guid isPermaLink="false">http://c5mix.com/blog/?p=5#comment-24401</guid>
		<description>well, I replaced it with yours and it looks the way I wanted, so thank you! (That&#039;s how C5 should ship standard; who wants an ugly tree breadcrumb?)</description>
		<content:encoded><![CDATA[<p>well, I replaced it with yours and it looks the way I wanted, so thank you! (That&#8217;s how C5 should ship standard; who wants an ugly tree breadcrumb?)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nate22</title>
		<link>http://c5mix.com/blog/tutorials/how-to-add-breadcrumb-navigation-to-your-concrete5-site/comment-page-1#comment-24400</link>
		<dc:creator>Nate22</dc:creator>
		<pubDate>Thu, 18 Mar 2010 19:21:36 +0000</pubDate>
		<guid isPermaLink="false">http://c5mix.com/blog/?p=5#comment-24400</guid>
		<description>Yeah, the new version comes with one, but it looks like hell. Any idea how to style it so it looks all nice like yours? 

Home &gt; next crumb &gt; next crumb

etc.?

On one line. I&#039;m getting a stupid-looking tree type configuration and looking at the breadcrumb.php template that comes with C5 is no help. It also looks very different from the code you posted above.</description>
		<content:encoded><![CDATA[<p>Yeah, the new version comes with one, but it looks like hell. Any idea how to style it so it looks all nice like yours? </p>
<p>Home &gt; next crumb &gt; next crumb</p>
<p>etc.?</p>
<p>On one line. I&#8217;m getting a stupid-looking tree type configuration and looking at the breadcrumb.php template that comes with C5 is no help. It also looks very different from the code you posted above.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chris Seymour</title>
		<link>http://c5mix.com/blog/tutorials/how-to-add-breadcrumb-navigation-to-your-concrete5-site/comment-page-1#comment-22360</link>
		<dc:creator>Chris Seymour</dc:creator>
		<pubDate>Sat, 06 Mar 2010 03:44:31 +0000</pubDate>
		<guid isPermaLink="false">http://c5mix.com/blog/?p=5#comment-22360</guid>
		<description>LukeH,
Hmmm, not sure. Can you send me a link to your site so I can take a look? You actually shouldnt need to create this breadcrumb template anymore. The new version of concrete5 already comes with one.</description>
		<content:encoded><![CDATA[<p>LukeH,<br />
Hmmm, not sure. Can you send me a link to your site so I can take a look? You actually shouldnt need to create this breadcrumb template anymore. The new version of concrete5 already comes with one.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: LukeH</title>
		<link>http://c5mix.com/blog/tutorials/how-to-add-breadcrumb-navigation-to-your-concrete5-site/comment-page-1#comment-22245</link>
		<dc:creator>LukeH</dc:creator>
		<pubDate>Thu, 04 Mar 2010 13:36:39 +0000</pubDate>
		<guid isPermaLink="false">http://c5mix.com/blog/?p=5#comment-22245</guid>
		<description>I chose the custom template and it makes the page go realy weird: the footer block moves to the top and I can&#039;t see a horizontal breadcrumb anywhere.

Any idea what I may be doing wrong (as you can tell, I am a newbie at this.)

Thanks

Luke</description>
		<content:encoded><![CDATA[<p>I chose the custom template and it makes the page go realy weird: the footer block moves to the top and I can&#8217;t see a horizontal breadcrumb anywhere.</p>
<p>Any idea what I may be doing wrong (as you can tell, I am a newbie at this.)</p>
<p>Thanks</p>
<p>Luke</p>
]]></content:encoded>
	</item>
</channel>
</rss>

