I am a new user to Umbraco, but I know asp.net, html and other CMS systems. I also a nub to Xslt
I am using Umbraco 4.7.0
What I am trying to do is add a css class to the included Umbraco Navagtion code. To the data types, I add a field call navClass and trying to refence it from the macro.
<!-- The fun starts here --> <ul id="navlist"> <xsl:for-each select="$currentPage/ancestor-or-self::* [@isDoc and @level=$level]/* [@isDoc and string(umbracoNaviHide) != '1']"> <li> <a class="(string(navClass))" href="{umbraco.library:NiceUrl(@id)}"> </a> </li> </xsl:for-each> </ul>
I got a email saying I should mark this as a solution, but I really don't see how to do this. I can click on High Five, but I can't vote because I don't have enought Karma
You should see an option on the posts from those who replied to, which reads something like "Mark as solution". If I remember correctly it's placed with the user avatar.
To give a high five you need to achieve 70 karma points.
Navagtion class for Xslt
I am a new user to Umbraco, but I know asp.net, html and other CMS systems. I also a nub to Xslt
I am using Umbraco 4.7.0
What I am trying to do is add a css class to the included Umbraco Navagtion code. To the data types, I add a field call navClass and trying to refence it from the macro.
<!-- The fun starts here -->
<ul id="navlist">
<xsl:for-each select="$currentPage/ancestor-or-self::* [@isDoc and @level=$level]/* [@isDoc and string(umbracoNaviHide) != '1']">
<li>
<a class="(string(navClass))" href="{umbraco.library:NiceUrl(@id)}">
</a>
</li>
</xsl:for-each>
</ul>
but looking at the page source I get
Hi Bruce,
You use the curly braces for that - and you don't need the string() function:
/Chriztian
Chriztian
DOH!
I guess I need better glasses or a bigger monitor. I feel embarrassed now.
Thanks for the quick reply.
No worries, Bruce :-)
We've all tried something like that. I mean... of course not. Never. :-)
/Chriztian
I got a email saying I should mark this as a solution, but I really don't see how to do this. I can click on High Five, but I can't vote because I don't have enought Karma
HI Bruce
You should see an option on the posts from those who replied to, which reads something like "Mark as solution". If I remember correctly it's placed with the user avatar.
To give a high five you need to achieve 70 karma points.
/Jan
Jan,
Thanks for the help, There was a green check mark which when you hover over it reads Mark as solved.
This is now solved.
Thanks for your help.
Bruce
is working on a reply...