We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 48747
    • 4 Posts
    Hi, I'm new to ModX and am giving it a go with a view to using it on some upcoming projects. I have installed it OK however I'm having an issue which has me stumped. I created a simple template and placed a few tags which work fine (such as [[*content]], [[++site_name]] - [[*pagetitle]] ). I read a tutorial which said I could include a dynamic menu by using [!Wayfinder? &startId=`0` &level=`1`] in my template. The problem is that the wayfinder tag prints to the page and doesn't produce a menu at all. Can anyone tell me what I'm doing wrong? Is my syntax wrong?

    Thanks in advance for any help.

    This question has been answered by AMDbuilder. See the first response.

      • 3749
      • 24,544 Posts
      If it's MODX Revolution, the Wayfinder tag should be:

      [[!Wayfinder? &startId=`0` &level=`1`]] 


      or

      [[Wayfinder? &startId=`0` &level=`1`]]


      If it's Evolution, it should be:

      [!Wayfinder? &startId=`0` &level=`1`!] 


      or

      [[Wayfinder? &startId=`0` &level=`1`]]


      With Wayfinder, you generally leave out the exclamation point so MODX can cache the menu.


        Did I help you? Buy me a beer
        Get my Book: MODX:The Official Guide
        MODX info for everyone: http://bobsguides.com/modx.html
        My MODX Extras
        Bob's Guides is now hosted at A2 MODX Hosting
        • 48747
        • 4 Posts
        Thanks for replying BobRay. I've tried all 4 of your options (just to be sure) and I still have the same issues.

        My template (test) looks like this:

        <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
        <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
        <html>
        <head>
        <meta http-equiv="content-type" content="text/html; charset=iso-8859-1">
        <base href="[(site_url)]"></base>
        <title>[*pagetitle*] | [(site_name)]</title>
        	<link rel="stylesheet" type="text/css" href="[(base_url)]assets/templates/tutorial/css/style.css" />
        </head>
        <body>
        <div id="branding">	
        </div> <!-- end of branding -->
        <div id="content-main">
        	<div id="content-text"><h2>template test</h2>
        <p>[[*content]]</p>
        			<p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Cras a nisi.
        			Donec blandit, ipsum id bibendum posuere, neque magna tincidunt nisi, nec facilisis odio turpis
        			sed odio. Donec nibh pede, tempor aliquet, vehicula eu, pellentesque vel, urna. Nullam at arcu
        			eu eros pretium viverra. Aenean vel mi quis augue cursus viverra. Cras at quam. Pellentesque
        			imperdiet nunc id lacus. Duis justo pede, tincidunt sed, accumsan sed, sollicitudin aliquet, dui.
        			Aliquam sed tortor at enim volutpat convallis. Vestibulum feugiat blandit erat. Sed vel libero.</p>
        			<p>Pellentesque habitant morbi tristique senectus et netus et malesuada
        			fames ac turpis egestas. Suspendisse nisi. Morbi elementum, diam ac pellentesque scelerisque,
        			nulla nulla pharetra sapien, nec rutrum erat eros sed velit. Aenean dignissim blandit tortor. Nulla
        			condimentum, ante quis volutpat blandit, ante lorem nonummy dui, eu fermentum nibh leo id magna.
        			Nam tempus nisi eget orci ullamcorper venenatis. Sed in nisl. Ut vel tortor. Phasellus id diam
        			semper enim congue tincidunt. Aenean dui neque, suscipit non, posuere ac, nonummy et, dolor.</p>
        			<p>Aliquam elit. Aliquam quis enim. In fringilla lectus. Nullam orci justo, sagittis id, 
        			malesuada ac, cursus egestas, massa. Sed ipsum nulla, blandit quis, tempor a, hendrerit sed, 
        			libero. Nam non eros ut nisi malesuada malesuada. Aliquam mauris. In hac habitasse platea 
        			dictumst. Proin rhoncus volutpat ante. Ut consequat, nunc nec tempor vulputate, turpis neque 
        			nonummy nisl, quis iaculis ante mauris a tortor. Nulla facilisi. Sed lectus justo, laoreet non, 
        			elementum sit amet, laoreet et, augue. Ut odio velit, tristique pellentesque, luctus et, varius 
        			a, ante. Donec aliquam. Cras ipsum nunc, feugiat cursus, tincidunt eu, molestie et, diam.</p>
        	</div> <!-- end content-text -->
        </div> <!-- end content-main -->
        <div id="content-sub">
        	<div id="content-sub-title"><h2>News</h2>
        			<p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit.</p>
         	</div> <!-- end content-sub title -->
        	
        	<div id="navigation">
        			<div id="navigation">
        	[[Wayfinder? &startId=`0` &level=`1`]]
        </div><!-- end of navigation -->
        		</div><!-- end of navigation -->
        </div> <!-- end content-sub -->
        <div id="site-info">
        <p>Copyright© 2007 CixDegrees.com - Powered by MODx - Hosted by (mt)MediaTemple</p> 
        </div> <!-- end of  -->
        </body>
        </html>


        yet my client page looks like this http://www.okelly.com.au/modx/index.php?id=2

        I'm wondering if I stuffed up the install somehow?
        • discuss.answer
          Hello,

          Could you tell us what version of MODX you are using, and what if any extras you have installed? MODX Revolution for example dosn't ship with any extras, so you wouldn't be able to use Wayfinder unless you install it.
            Patrick | Server Wrangler
            About Me: Website | TweetsMODX Hosting
            • 48747
            • 4 Posts
            Ah ok. That maybe the issue then. I have installed MODX Revolution 2.3.1-pl (traditional) and the only add-on I have installed is tinymce.

            That's embarrassing. So I need to install an extra to use wayfinder? I just assumed it would work out-of-the-box.
              • 48747
              • 4 Posts
              OK. I installed the Wayfinder add-on and all works ok now. Sorry - I feel like an idiot. Thanks BobRay & AMDBuilder.
              • We all started somewhere, glad to hear you got it sorted out smiley
                  Patrick | Server Wrangler
                  About Me: Website | TweetsMODX Hosting