Just doing some Top Navigation. I have a property on the Home Page node called altNavigationName. I was using this in the following code to good effect
However I wanted to make the macro a little more generic so I thought if I test the model for the Home page docuemen type and pass that in as a Parameter that would work to
Model.DocumentType problem
Just doing some Top Navigation. I have a property on the Home Page node called altNavigationName. I was using this in the following code to good effect
string selected = Model.altNavigationName == "Home" ? " class=\"selected\"" : "";
However I wanted to make the macro a little more generic so I thought if I test the model for the Home page docuemen type and pass that in as a Parameter that would work to
However the selected variable always has a value of " class="selected"
Can anybody explain what's going on? Am I missing something really simple?
Jules
Hi Jules,
Here is what you can do if
Not sure if this is what you are looking to achive though
//fuji
is working on a reply...