We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 24376
    • 4 Posts
    I’m really new to modx and i really like it so far. I’m trying to create my first template for my site. I started from a design i created and cut up and created that in html/css and now i’m trying to put it into modx. I’m still in the early stages of figuring out modx, but I’m getting there.

    Basically here’s my current problem. I started building a basic two column template page and assigned it to the blank pages I have setup in the file tree. These pages are blank except for setting up their menu id, page title, etc. I plan on going back after i have this first part worked out. But right now there is top navigation and a secondary navigation (right column navigation) that should only appear on the services page (with 8 children). I have got the secondary navigation working but it is also being displayed in the top navigationThe top navigation was working perfectly until i tried to put in the secondary navigation.

    here’s the working wayfinder code i have for the top navigation:
     <div class="menu">
        	[[Wayfinder? &startId=`0` &level`1` &outerTpl=`menuContainer` &rowTpl=`menuRows`]]
        </div>]


    and a separate chunk called ’menuRows’
    <li [+wf.id+]><a [+wf.classes+] href="[+wf.link+]" title="[+wf.title+]" [+wf.attributes+]><span>[+wf.linktext+]</span></a>[+wf.wrapper+]</li>


    working wayfinder code for the secondary right navigation:
    <div class="subnav">
    	<ul class"subnav">
                [[Wayfinder? &startId=`2` &level`2` &innerRowTpl=`menuContainer` &rowTpl=`menuRows`]]
    	</ul>
    </div>


    separate chunk for secondary right navigation:
    <li[+wf.classes+]>
    	<a href="[+wf.link+]" title="[+wf.title+]">[+wf.linktext+]</a>
    	[+wf.wrapper+]
    </li>


    I’m attaching some screencaps i made of where i am now to try and explain the problem better. (note: ignore the breadcrumbs and jot/comment area...i’m planning on working that out after i work out the navigation)

    any help is greatly appreciated!

    thanks.

      • 24376
      • 4 Posts
      UPDATE!

      i found it! the problem was in the top navigation wayfinder code:

      <li [+wf.id+]><a [+wf.classes+] href="[+wf.link+]" title="[+wf.title+]" [+wf.attributes+]><span>[+wf.linktext+]</span></a>[color=red][+wf.wrapper+][/color]</li>


      i took off the [+wf.wrapper+] part and now it is working! grin

      i’m sure i’ll be back posting as i progress, but i wanted to post this update in case anyone else was running into similar problems.
        • 23299
        • 1,161 Posts
        Great!

        Please keep us updated on your progress. Threads like these are great for folks who follow in your footsteps...