We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 14
    • 9 Posts
    Oh haha no worries man.

    Sure okay! When I get a free second, I’ll take some snapshots and post the code that goes along with it.

    Ah okay, I’ll see what I can do about that then.

    Thanks!
      • 14
      • 9 Posts
      Okay, so here’s what I did. It’s not the perfect solution I was after, but it works well enough hehe. smiley

      So attached to this thread is a picture of my menu hierarchy. The top level page isn’t actually used to display content, more it’s just there to group the sublinks.

      In the template file that renders the menu on the right hand side, I’ve written the following code.

      <div id="navmenu">
      	<h1 class="fronttitle">Teams</h1>
          [!Wayfinder? &startId=`2` &hideSubMenus=`1` &level=`3` &outerTpl=`navmenu.InnerTpl` &innerTpl=`navmenu.InnerTpl` &rowTpl=`navmenu.InnerRowTpl` &innerRowTpl=`navmenu.InnerRowTpl` &firstClass=`first` &hereClass=``!]
      
      	<h1 class="fronttitle">Overview</h1>
      	[!Wayfinder? &startId=`1` &hideSubMenus=`1` &level=`3` &outerTpl=`navmenu.InnerTpl` &innerTpl=`navmenu.InnerTpl` &rowTpl=`navmenu.InnerRowTpl` &innerRowTpl=`navmenu.InnerRowTpl` &firstClass=`first` &hereClass=``!]
      </div>


      So bascially as you can see, the title is static, but the links underneath are dynamically displayed, with hidesublinks on. Each menu section has its own Wayfidner call.

      Originally, I was hoping to have it so the titles could be dynamic too, but that doesn’t look possible. Either way, since the titles aren’t going to be changed very often, having them as static HTML is fine.

      Hope that helps someone. smiley

      -TiM

        • 16183
        • 1,390 Posts
        TiM,

        Thanks for sharing

        Quote from: -TiM- at Sep 10, 2009, 01:07 AM


        Originally, I was hoping to have it so the titles could be dynamic too, but that doesn’t look possible

        That is possible. I think in my mind I thought you wanted to create the whole menu with one WF call. Now that you are using two calls, you can use the parameters &displayStart and construct a startItemTpl.

        So, the contents of the startItemTpl chunk would be:

        <h1 class="fronttitle">[+wf.linktext+]</h1>[+wf.wrapper+]


        Then in your site’s template add the code:

        <div id="navmenu">
        [!Wayfinder? &startId=`2` &hideSubMenus=`1` &level=`3` &outerTpl=`navmenu.InnerTpl` &innerTpl=`navmenu.InnerTpl` &rowTpl=`navmenu.InnerRowTpl` &innerRowTpl=`navmenu.InnerRowTpl` &firstClass=`first` &hereClass=`` &displayStart=`1`!]
        
        [!Wayfinder? &startId=`1` &hideSubMenus=`1` &level=`3` &outerTpl=`navmenu.InnerTpl` &innerTpl=`navmenu.InnerTpl` &rowTpl=`navmenu.InnerRowTpl` &innerRowTpl=`navmenu.InnerRowTpl` &firstClass=`first` &hereClass=`` &displayStart=`1`!]
        </div>


        In the above site template code, &displayStart=`1` has been added to your WF call

        That’s it really.

        cheers/k smiley