Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
Hi, I don't know what I'm doing wrong, but I'd like be able to add a css class to the current node only, even if there's children or not.
<umbraco:Macro startingLevel="1" recurse="1" selectBranches="0" maxMenuDepth="10" ulBaseClass="" branchClass="" selectedClass="hilight" forceNode="" expandChildren="0" forceHome="0" securityTrimming="1" Alias="[COG]Navigation" runat="server"></umbraco:Macro>
So, I put 0 on selectBranches because I don't want to apply the branchClass class to the parents.
The only class I need is to selectedClass. So I put my css class there. (hilight).
Nevertheless, all the children of the selected node are hilighted. How can I only hilight the current node?
Hope I'm clear!
Thank you in advance!
Hi,
I'll take a look. Sounds like it may be a bug.
Are you using the XSLT version or the Razor version?
Kindest Regards
Tim
Hi Tim, I'm using xslt version on umbraco 4.7.1
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.
Continue discussion
active class for current node only
Hi, I don't know what I'm doing wrong, but I'd like be able to add a css class to the current node only, even if there's children or not.
So, I put 0 on selectBranches because I don't want to apply the branchClass class to the parents.
The only class I need is to selectedClass. So I put my css class there. (hilight).
Nevertheless, all the children of the selected node are hilighted. How can I only hilight the current node?
Hope I'm clear!
Thank you in advance!
Hi,
I'll take a look. Sounds like it may be a bug.
Are you using the XSLT version or the Razor version?
Kindest Regards
Tim
Hi Tim, I'm using xslt version on umbraco 4.7.1
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.