Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at

  • Claire Botman 48 posts 77 karma points
    Oct 27, 2010 @ 03:45
    Claire Botman

    2 menus, works great unless ForceHome is set on the first

    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.

    First menu:

    <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">

    Second menu

    <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">

    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 :-)


  • Tim Saunders 225 posts 690 karma points
    Oct 27, 2010 @ 19:09
    Tim Saunders

    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.

    Kindest Regards


  • Claire Botman 48 posts 77 karma points
    Oct 27, 2010 @ 23:52
    Claire Botman

    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 :-

  • Claire Botman 48 posts 77 karma points
    Oct 27, 2010 @ 23:54
    Claire Botman

    and umbraco v 4.5.2


Please Sign in or register to post replies

Write your reply to: