We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 19889
    • 616 Posts
    Hello

    I’m having a simple page with three wayfinder calls - I still don’t know why it’s not really working but believe me, it is not. sometimes it does, sometimes it doesn’t - I figured that it make a difference whether I call Wayfinder cached or not - what happens is that it just ignores the config file that looks like this:
    	//$startId		= 0;
    	$firstClass 	= 'first'; 
    	$lastClass 		= 'last';
    	$hereClass 		= 'selected'; 
    	//$selfClass 	= 'selected';
    	//$parentClass	= '';
    	//$rowClass		= '';
    	//$levelClass	= '';
    	$outerClass		= 'clearfix';
    	//$innerClass		= '';
    	//$webLinkClass	= '';
    	//$hideSubMenus 	= 'true';
    	$level 			= 2;
    	$useWeblinkUrl  = false;	
    	$removeNewLines	= true;
    	
    	$outerTpl 		= '@CODE:
    		<ul[+wf.classes+]>
    			[+wf.wrapper+]
    		</ul>';
    /*		
    	$parentRowHereTpl	= '@CODE:
    			<li[+wf.classes+]>
    				<a href="[+wf.link+]" title="[+wf.title+]">[+wf.linktext+]</a>
    				[+wf.wrapper+]
    			</li>';
    	
    	$innerHereTpl 		= '@CODE:
    			<li[+wf.classes+]>
    				<a href="[+wf.link+]" title="[+wf.title+]">[+wf.linktext+]</a>
    				[+wf.wrapper+]
    			</li>';
    */
    	$hereTpl 			= '@CODE:
    			<li[+wf.classes+]>
    				<a href="[+wf.link+]" title="[+wf.title+]">[+wf.linktext+]</a>
    				[+wf.wrapper+]
    			</li>';
    /*
    	$activeParentRowTpl	= '@CODE:
    			<li[+wf.classes+]>
    				<a href="[+wf.link+]" title="[+wf.title+]">[+wf.linktext+]</a>
    				[+wf.wrapper+]
    			</li>';
    
    	
    	$parentRowTpl		='@CODE:
    			<li[+wf.classes+]>
    				<a href="[+wf.link+]" [+wf.attributes+] title="[+wf.title+]">[+wf.linktext+]</a>
    				[+wf.wrapper+]
    			</li>';
    	
    			
    	$innerRowTpl 		= '@CODE:
    			<li[+wf.classes+]>
    				<a href="[+wf.link+]" [+wf.attributes+] title="[+wf.title+]">[+wf.linktext+]</a>
    				[+wf.wrapper+]
    			</li>';
    */		
    	$rowTpl 			= '@CODE:
    			<li[+wf.classes+]>
    				<a href="[+wf.link+]" [+wf.attributes+] title="[+wf.title+]">[+wf.linktext+]</a>
    				[+wf.wrapper+]
    			</li>';
    			
    /*
    // template order
    1 startItemTpl
    2 parentRowHereTpl
    3 innerHereTpl
    4 hereTpl
    5 activeParentRowTpl
    6 categoryFoldersTpl
    7 parentRowTpl
    8 innerRowTpl
    9 rowTpl
    */
    
    


    these are the three calls that I have in my page:
    <div id="hd_menu"> [!Wayfinder?&startId=`0`&config=`dock`!] </div>
    <div id="bd_menu"> [!Wayfinder?&startId=`13`&config=`dock`!] </div>
    <div id="ft_menu"> [!Wayfinder?&startId=`0`&config=`dock`!] </div>
    


    the menu has only 1 level so far - could anybody please tell me what I’m missing here? Are there any limitations on how many Wayfinder calls I can have in my template?

    Thank you in advance for your help.


      • 4310
      • 2,310 Posts
      Your config file is definitely here :
      assets/snippets/wayfinder/configs/dock.config.php

      The only other thing is I’m not familiar with :
      $hereTpl 

      But that could be me laugh
        • 20413
        • 2,877 Posts
        The &hereTpl is cool and so are multiple calls.
        If your page is set to cacheable use [!...!]

        Good Doc --> http://wiki.modxcms.com/images/f/fa/Wayfinder200_docs_v6.zip
          @hawproductions | http://mrhaw.com/

          Infograph: MODX Advanced Install in 7 steps:
          http://forums.modx.com/thread/96954/infograph-modx-advanced-install-in-7-steps

          Recap: Portland, OR (PDX) MODX CMS Meetup, Oct 6, 2015. US Bancorp Tower
          http://mrhaw.com/modx_portland_oregon_pdx_modx_cms_meetup_oct_2015_us_bancorp_tower
          • 19889
          • 616 Posts
          I do have the call set to cacheable - still no luck - interestingly, sometimes when I call a page it doesn’t work - if I re-click the page, it does - really weird
            • 19889
            • 616 Posts
            Bump! - anybody else has an idea why my multiple wayfinder calls are failing?