Developer forum

Forum » Templates » XML/XSLT (Advanced function)

XML/XSLT (Advanced function)

Angel
Reply

Hi,



When you are using XML/XSLT menu and you navigate to the subpages the top level menu doesn’t looks selected. For example:



If i am on this page: http://amigosxafrica.net.dynamicweb.es/Default.aspx?ID=3



And click the subpage: http://amigosxafrica.net.dynamicweb.es/Default.aspx?ID=26



Comunicación should remain selected because we are in the subpage of Comunicación...



Replies

 
Reply

Hi Salman,

 

I already had the same problem. It actually does have the classes, if the XSLT is written correctly, but for some reason, the Lx_Active class is not interpreted. You have to apply your "active" css settings, either on the xlst or in an external css file.

 

Nuno

 
Reply

Hi Salman

 

If you look inth XML you will see an attribute called InPath which is a boolean.

 

If this one is true, you can apply a css class called inpath which you then can style as you like.

 

The InPath attribute will be true on all pages that you have clicked on for each level in the structure.

 

// Dammark

 
Angel
Reply
Dammark wrote:

Hi Salman

 

If you look inth XML you will see an attribute called InPath which is a boolean.

 

If this one is true, you can apply a css class called inpath which you then can style as you like.

 

The InPath attribute will be true on all pages that you have clicked on for each level in the structure.

 

// Dammark

Thank you guys for your help!

 

The css is not taking control...

 

.inpath a{
    color:#fff;
    background: url(/Files/Billeder/images/hover.gif) repeat-x;
}

 

somehow i want assign inpath class to <li>

 

Thanks

 

- Salu

 
Reply

<li>

    <xsl:if test="@InPath='True'">

        <xsl:attribute name="class">

            <xsl:text>inpath</xsl:text>

        </xsl:attribute>

    </xsl:if>

</li>

 

You must be logged in to post in the forum