Quick Nav:  Online Store   |   Login | Register

DisplayPaths problem

Rate this topic:

Please Register to post a reply. Another benefit of registration is the ability to subscribe to and recieve notifications of new posts.
AuthorMessages
PeteG
<20 Posts
Posts:3


11/18/2007 4:23 PM  

Hi,

My brief requires that the home page navigation uses OnlyExpandActive="False", and all other pages use OnlyExpandActive="True". My plan is to use 2 NavMenu instances in my skin, using the DisplayPaths attribute to ensure that the instance with OnlyExpandActive="False" only appears on the Home page, and the  OnlyExpandActive="True"  instance doesn't appear on the Home page, but does appear on every other page. But, I can't get the DisplayPaths property to work at all. I'm not a RegEx whizz, and I need something equivalent to the SQL of "LIKE '%/Home/%'" and "NOT LIKE '%/Home/%'.

Can anyone help?

Thanks!

 

 

John Mitchell
Posts:3478


11/18/2007 4:34 PM  
The regex for that gets tricky because you probably also want the main domain by itself which won't have "Home" in the url.

It would be easier to just create a copy of your skin, and change the properties for the home page, then apply that to the home page only.
PeteG
<20 Posts
Posts:3


11/19/2007 2:22 AM  

Thanks for that John. Your solution was always my plan B - not as elegant, but good enough I guess!

John Mitchell
Posts:3478


11/19/2007 7:41 AM  
We could work on doing it the other way, but I have tried that before and ended up going back to the simple (less elegant) way.

To answer the original question, for the one with Home it would just be DisplayPath="Home" and to do everthing that doesn't have Home it would be DisplayPath="(?!Home)"
Please Register to post a reply. Another benefit of registration is the ability to subscribe to and recieve notifications of new posts.
Forums >Snapsis Product Support >CSS NavMenu > DisplayPaths problem



ActiveForums 3.7
Powered by: Snapsis Software