We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 22350
    • 2 Posts
    Hi everyone,
    I’m new to modx and trying to create web site with custom design template. So I use Wayfinder as menu component.

    However I got some problems with wayfinder templates. I’m trying to create a simple horizontal for sub-sections of my site. So I created smOuter, smRow and smHere templates.

    smOuter:
    [[+wf.wrapper]]
    
    smRow:
    <a href="[[+wf.link]]">[[+wf.linktext]]</a>   
    
    smHere:
    [[+wf.linktext]]   
    
    Snippet code in design template:
    [[Wayfinder? &startId=`[[UltimateParent]]` &level=`1` &outerTpl=`smContainer` &rowTpl=`smRow`&hereTpl=`smHere` &debug=`TRUE`]]
    


    The problem is Wayfinder does not override templates. It outputs exactly the same default layout with
    [[Wayfinder? &startId=`[[UltimateParent]]` &level=`1`]]
    


    In addition, I got some strange findings with &Debug output;

    Raw debug output;
    id	5	
    level	1
    includeDocs	 	
    excludeDocs	 
    ph	false	
    debug	TRUE
    ignoreHidden	false	
    hideSubMenus	false
    useWeblinkUrl	true	
    fullLink	false
    sortOrder	ASC	
    sortBy	menuindex
    limit	 	
    cssTpl	false
    jsTpl	false	
    rowIdPrefix	false
    textOfLinks	menutitle	
    titleOfLinks	pagetitle
    displayStart	false	
    firstClass	first
    lastClass	last	
    hereClass	active
    parentClass	 	
    rowClass	 
    outerClass	 	
    innerClass	 
    levelClass	 	
    selfClass	 
    webLinkClass	
     	
    ***outerTpl	smContainer***
    ***rowTpl	smRow***
    parentRowTpl	 
    parentRowHereTpl 
    ***hereTpl smHere***
    innerTpl	 	
    innerRowTpl	 
    innerHereTpl	 	
    activeParentRowTpl	 
    categoryFoldersTpl	 	
    startItemTpl	 
    startId	5	
    config	C:\wamp\www\modx/core/components/wayfinder/configs/default.config.php
    
    CSS Settings - Available CSS options.
    first	first	last	last
    here	active	parent	 
    row	 	outer	 
    inner	 	level	 
    self	 	weblink	
     
    Template Processing
    outerTpl - No template found, using default.
    outerTpl	<ul[[+wf.classes]]>[[+wf.wrapper]]</ul>
    rowTpl - No template found, using default.
    rowTpl	<li[[+wf.id]][[+wf.classes]]><a href="[[+wf.link]]" title="[[+wf.title]]" [[+wf.attributes]]>[[+wf.linktext]]</a>[[+wf.wrapper]]</li>
    parentRowTpl - No template found, using default.
    parentRowTpl	false
    parentRowHereTpl - No template found, using default.
    parentRowHereTpl	false
    hereTpl - No template found, using default.
    hereTpl	false
    innerTpl - No template found, using default.
    innerTpl	false
    innerRowTpl - No template found, using default.
    innerRowTpl	false
    innerHereTpl - No template found, using default.
    innerHereTpl	false
    activeParentRowTpl - No template found, using default.
    activeParentRowTpl	false
    categoryFoldersTpl - No template found, using default.
    categoryFoldersTpl	false
    startItemTpl - No template found, using default.
    startItemTpl	<h2[[+wf.id]][[+wf.classes]]>[[+wf.linktext]]</h2>[[+wf.wrapper]]
    


    Setting section of debug output shows that I actually assigned template properties (Detonated with *** at above) but template processing sections says otherwise and uses default template values.

    Is it a bug or I’m doing some thing wrong ? I can’t figure out. Can you help me. Thanks.
      • 4310
      • 2,310 Posts
      If it’s Evolution your using try this :
      smOuter:
      [+wf.wrapper+]
      
      smRow:
      <a href="[+wf.link+]">[+wf.linktext+]</a>   
      
      smHere:
      [+wf.linktext+]   
      
      Snippet code in design template:
      [!Wayfinder? &startId=`[[UltimateParent]]` &level=`1` &outerTpl=`smContainer` &rowTpl=`smRow`&hereTpl=`smHere` &debug=`TRUE`!]
        • 22350
        • 2 Posts
        I’m using revolution.
        Sorry I forgot to metion that.
          • 22303 MODX Staff
          • 10,725 Posts
          Are you sure those Chunks exist?