Quantcast
Channel: ActiveTopics
Viewing all articles
Browse latest Browse all 72689

XSLT Top nav

$
0
0

Hi All,

With regards to the top Nav's HOME link, I would like to be able to get a parent page property and use that in the <a href="/">Home</a> section rather than hardcoding to the root of the site, like

 <a href="parentssiterootproperty ">Home</a>

Any help would be appreciated, thanks.

 

 <ul id="topNavigation">
       <li class="home">
         <xsl:if test="$currentPage/@id = $currentPage/ancestor-or-self::* [@level=$level]/@id">
             <xsl:attribute name="class">home current</xsl:attribute>
         </xsl:if>
     <xsl:variable name="URL">
      <xsl:value-of select="pageTitle"/>
     </xsl:variable>
     <a href="/">Home</a>


Viewing all articles
Browse latest Browse all 72689

Trending Articles