Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Profiterole 232 posts 264 karma points
    Feb 28, 2012 @ 17:39
    Profiterole
    0

    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.

    <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!

  • Tim 225 posts 690 karma points
    Feb 29, 2012 @ 12:27
    Tim
    0

    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

  • Profiterole 232 posts 264 karma points
    Feb 29, 2012 @ 15:01
    Profiterole
    0

    Hi Tim, I'm using xslt version on umbraco 4.7.1

  • 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.

Please Sign in or register to post replies