Follow me @MarkXA

Subscribe

Donate

Forum

 
ForumForumSupportSupportDNN menuDNN menuSetting Active/Selected Tab When Using XML sourceSetting Active/Selected Tab When Using XML source
Previous Previous
 
Next Next
New Post
 22/04/2010 05:11
 
 Modified By Dan  on 22/04/2010 05:11:46

First, I really like the concept behind your navigation provider, and I love the flexibility and customization options.

I'm a little stuck, though, trying to get an XML data source driven menu to recognize when it is on the "active page," so that it applies the "selected" class.

Since the menu is global, I can't set each xml node as "selected='1'" Of course, it works fine on a DNN driven menu; it recognizes the current page adds the "selected" class.

But I am using a custom mega-drown style menu, and XML is my only option.

New Post
 29/04/2010 04:29
 

I Dan,

It could help if you provide us the xslt you use. By experience, I realized that, if you have multiple "if" condition in the xslt to add the class tag, they will override eachother. This is maybe your case. I finally use "when" condition so I could compare a lot of thing and writte only one tag assignation.

But to be certain that this is your problem, can you provide us a sample of your xml and xslt ?

Stephane

New Post
 29/04/2010 15:09
 

Maybe I jump to conclusion too fast ... maybe you don't use xslt... If not ... what template do you use ?

(but I still need the xml as sample)

Previous Previous
 
Next Next
ForumForumSupportSupportDNN menuDNN menuSetting Active/Selected Tab When Using XML sourceSetting Active/Selected Tab When Using XML source

Register / login

Please note, to post on this forum you will need to register or log in.