We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 10357
    • 573 Posts
    Hi,

    I am having a lot of trouble trying to use a wayfinder config file with revo. The template chunks are used correctly but the startID and level params are ignored.

    my call
    [[!Wayfinder? &config=`one-level-hoz`]]


    my config file
    <?php
    $startId = 0;
    $level = 1;
    
    $outerTpl = '@CODE:
        <ul id="topMenu">
        [[+wf.wrapper]]
        </ul>';
    	
    $rowTpl = '@CODE:<li [[+wf.id]]><a [[+wf.classes]] href="[[+wf.link]]">[[+wf.linktext]]</a>[[+wf.wrapper]]</li>';
    ?>
    
      • 26016
      • 561 Posts
      Hi,
      What you have there looks syntactically excellent... I can’t find anything wrong.

      This intrigued me, so I tried a config on my Revo system. It worked fine with a call using startId. Then I looked through all the configs there, and none had a startId. So I tried using a startId in the config I was testing (instead of in the call), and I got no output at all. So my guess would be that for some reason startId doesn’t work in that spot, maybe. Would probably require some digging to find out for sure.

      Does your config work if you included startId in your call?

      Cheers, Dave
        MODx and Wordpress development
        Linux, PHP 5.2, MySQL 5.0, Evo 1.05, Revo 2.08-pl, Firefox 4
        • 10357
        • 573 Posts
        thanks for looking grin

        startID does not work in the config php, but used in the call it does... but it’s not just startID many of the params do not work for example hereClass does, level does not.
          • 29877
          • 35 Posts
          I was having the same trouble. I began looking for a solution as I wanted to keep all of the settings within one location. I ended up trying (and settling on) the suggestion of using a custom property set, as mentioned here:

          https://forums.modx.com/index.php?topic=50391.0