Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
I have 2 menus, one for horizontal nav, the other for extra vertical nav. Both trees start in the root.
They work great, except if I try to force the home node on the first. If forcehome is set to nothing, it works fine, if it's set to 0 or 1 (I want 1) then it's strange, but what happens is that when we're on one of the pages in the 2nd tree (the vertical, second nav), the first nav renders the structure of the 2nd tree.
That's really hard to explain, I hope it made sense. Here's what I've got.
<umbraco:macro startinglevel="1" recurse="1" selectbranches="1" maxmenudepth="2" ulbaseclass="horizontal" branchclass="selected" selectedclass="selected" forcenode="1111" forcehome="" expandchildren="0" alias="[COG]Navigation" runat="server"></umbraco:macro>
<umbraco:macro startinglevel="1" recurse="1" selectbranches="1" maxmenudepth="2" ulbaseclass="vertical" branchclass="selected" selectedclass="selected" forcenode="1184" forcehome="" expandchildren="1" alias="[COG]Navigation" runat="server"></umbraco:macro>
This is the closest to what I want, but I want to force the home node on the first menu.
Is there a set of settings that will do this? If not I guess I'll have to rethink structure or hack the xslt :-)
Hiya - any chance of a screengrab. As I'm not sure of what you are describing. It sounds to me like it might something to do with the settings. Or perhaps a bug.
Can you also let me know which version of Umbraco you are running it in.
Great idea! And the act of doing that made me realise the problem is different to what I described (not as weird, but still a problem).
You can see the horizontal & vertical menus, with forcehome="1" on the horizontal menu. Here's a page from the horizontal (first) menu. It's fine.
Now if I go to one of the pages on the vertical menu, the home node of the vertical menu shows up in place of the home node of the horizontal (first) menu. This happens regardless of the value of forcehome on the 2nd menu.
In addition, if I set forcehome="1" on the 2nd menu, then visit a page
from the first menu, the first menu's home node ("Home") appears at the
top of the 2nd menu too.
I hope that's clear, and sorry I got the description wrong in the first place :-
and umbraco v
is working on a reply...
Write your reply to:
Image will be uploaded when post is submitted