tag:help-archives.hannonhill.com,2010-02-09:/discussions/xslt-formats/5993-hardcoding-a-path-in-our-breadcrumbsCascade CMS: Discussion 2015-05-27T19:42:58Ztag:help-archives.hannonhill.com,2010-02-09:Comment/367087662015-04-29T15:14:29Z2015-04-29T15:14:29Zhardcoding a path in our breadcrumbs<div><p>Hi Matthew,</p>
<p>You should be able to simply add the link within your
<strong>system-index-block</strong> template, right before you call
the <code><xsl:apply-templates></code> to output the
hierarchy. Additionally, you could check the calling page to make
sure you don't end up outputting a link for Home more than once
(that is if you are outputting breadcrumbs on the base folder's
index page).</p>
<p>Please let me know if you have any questions.</p>
<p>Thanks!</p></div>Ryan Griffithtag:help-archives.hannonhill.com,2010-02-09:Comment/367087662015-04-29T15:24:37Z2015-04-29T15:24:37Zhardcoding a path in our breadcrumbs<div><p>No problem with putting in the home link in the template but I
tried modifying the index block to get rid of the extra Home link
and unable to do so. I attached the breadcrumbs as it currently is
and the current index block.</p></div>matthew.wrentag:help-archives.hannonhill.com,2010-02-09:Comment/367087662015-04-29T15:29:09Z2015-04-29T15:29:09Zhardcoding a path in our breadcrumbs<div><p>Hi Matthew,</p>
<p>My apologies, didn't realize the Format was already generating
the link. In that case, perhaps try tweaking the XPath of your
<code><xsl:for-each></code> to the following to filter out
the top level folder all-together:</p>
<pre>
<code><xsl:for-each select="ancestor::system-folder[path != '//']"></code>
</pre>
<p>Additionally, you can remove the <code><xsl:if></code>
within the loop when outputting the link since your loop will no
longer contain this folder.</p>
<p>Please let me know if you have any questions.</p>
<p>Thanks!</p></div>Ryan Griffithtag:help-archives.hannonhill.com,2010-02-09:Comment/367087662015-04-29T15:32:48Z2015-04-29T15:32:48Zhardcoding a path in our breadcrumbs<div><p>That worked wonderfully! Thank you so much.</p></div>matthew.wrentag:help-archives.hannonhill.com,2010-02-09:Comment/367087662015-04-29T15:49:02Z2015-04-29T15:49:02Zhardcoding a path in our breadcrumbs<div><p>Not a problem at all, Matthew, thank you for following up. I am
glad to hear the changes did the trick.</p>
<p>I'm going to go ahead and close this discussion, please feel
free to comment or reply to re-open if you have any additional
questions.</p>
<p>Have a great day!</p></div>Ryan Griffithtag:help-archives.hannonhill.com,2010-02-09:Comment/367087662015-05-06T18:49:14Z2015-05-06T18:49:14Zhardcoding a path in our breadcrumbs<div><p>Hey Ryan,</p>
<p>I just noticed something with the breadcrumbs. If the
system-page title is <code>index</code> it will exclude the display
name of the page within the crumb trail. Would
<code><xsl:for-each select="ancestor::system-folder[path !=
'//']"></code> affect this?</p></div>matthew.wrentag:help-archives.hannonhill.com,2010-02-09:Comment/367087662015-05-07T18:18:07Z2015-05-07T18:18:07Zhardcoding a path in our breadcrumbs<div><p>Hi Matthew,</p>
<p>I'm not sure if I am following here. I don't see any reference
in your Format for a page's <strong>title</strong>. Can you
elaborate a bit more?</p>
<p>Thanks!</p></div>Ryan Griffith