I'm pretty new to razor and am struggling a bit here. Ideally what i'd like to do is create a select element that contains the site navigation (for a responsive site). i can get the top level nav, but not the subnav... and i can't get any of it to link out. basically i have hit a wall... repeatedly.
if anyone can point in a direction to start it would be much appreciated.
my other option woul dbe to do off canvas nav, which i think i can make work.
Creating a Select Element of Navigation
I'm pretty new to razor and am struggling a bit here. Ideally what i'd like to do is create a select element that contains the site navigation (for a responsive site). i can get the top level nav, but not the subnav... and i can't get any of it to link out. basically i have hit a wall... repeatedly.
if anyone can point in a direction to start it would be much appreciated.
my other option woul dbe to do off canvas nav, which i think i can make work.
Hi Joshua
What version of Umbraco are you using and do you have some code you could share?
And have you tried playing around with some of the base-examples that can be chosen if you create a razor macro in the developer section?
Also it's a good idea to have the Razor cheatsheet open in order to figure out how to do something :)
/Jan
Hi Joshua,
The NavIt package might be useful for you either to use directly or as a guide as to how you can construct a nav partial view.
Jeavon
is working on a reply...