[Hypercontent-users] BreadCrumbs
Brought to you by:
alexvigdor
From: Carl B. <C.P...@hu...> - 2005-04-29 13:26:27
|
I'm still having a problems getting breadcrumbs working properly on my sites here in Hull. It always displays the first child at a Particular level instead of the one which corresponds to the directory you are actually in. Does anyone have time to take a look at where I might be going wrong? Many Thanks Carl <xsl:variable name = "navigation" select = "/cms:wrapper/child::*/navigation"/> <xsl:variable name = "sourceLoc" select = "/cms:wrapper/cms:source/@path"/> <xsl:template name = "breadcrumb"> <xsl:param name = "item" select = "$navigation/nav-item[//nav-item[@location=$sourceLoc]]"/> <xsl:call-template name = "breadcrumblink"> <xsl:with-param name = "item" select = "$item"/> </xsl:call-template> <xsl:if test = "not($item/@location=$sourceLoc)"> <xsl:text> > </xsl:text> <xsl:call-template name = "breadcrumb"> <xsl:with-param name = "item" select = "$item/nav-item[//nav-item[@location=$sourceLoc]]"/> </xsl:call-template> </xsl:if> </xsl:template> <xsl:template name = "breadcrumblink"> <xsl:param name = "item" select = "."/> <a><xsl:attribute name = "href"> <xsl:value-of select = "$item/@location"/> </xsl:attribute> <xsl:value-of select = "$item/@label"/></a> </xsl:template> -- ************************************ Carl Barrow Web Developer e-Services The University of Hull Cottingham Road Hull HU6 7RX Ext. 6838 ************************************ |