-
-
Save warrenbuckley/1700950 to your computer and use it in GitHub Desktop.
Hey Jorge,
Yeh good idea, I am used to camelCase from the property aliases in Umbraco hence the habit.
Hi Warren
A great set of samples. I've just ticked a couple of "how will I do that" off my list!
However, I think the outermost call to NaviMarkup is improperly nested (you will end up with ul -> ul rather than ul -> li -> ul)
Also, do you think this is verging on too much code for a view? I'd have attacked this as a surface controller and nav view model maybe?
@andiih thanks for that spot, just fixed the example now :)
Awesome examples you have made Warren. Thanks!
I do have a question regarding this Navigation Example and hopefully you can help me and others out.
The generated list is exactly what I want perfectly looking from Rootnode till end-variable.
But, most of the time, in the content-section, the architecture is for example like this:
Homepage (lvl1)
About us (lvl2)
Contact (lvl2)
Books(lvl2)
Book Detail (lvl3)
Although 'Homepage' is the rootnode, it basically is the same level(2) as 'About us', 'Contact' and 'Books' in terms of generating a list for the navigation. I am struggling a bit getting the 'Homepage' at the same level(2).
Would be great if you can help me out on this one as I am pretty new to Razor and Umbraco.
Thanks in advance anyway!
I really like this example. Just two things:
Thanks