We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 11076
    • 159 Posts
    It seems nice to pack it all up this way, maybe even better than property sets. thanks.
    As i understand "filename.config.php" should be placed inside wayfinde’s "congifs" directory. and should be safe of an update.

    Wayfinder fully commented example.config.php file
    http://modxcms.com/forums/index.php?topic=18133.0

    It’s nice but it doesn’t solve the indentation problem to tidy the HTML when using more than 2 levels. (issue filed here)

    oh,well smiley
    happy holidays to you all
      Michael Shraibman( gOmp)  | Freelance Design & Development | wink  impossible is nothing...
      • 34120
      • 236 Posts
      This looks great but I can’t get it working, I think it may have been working for a second or so, I’m not sure smiley
      I’m pretty stumped, I’ve checked and double checked.
      [[!Wayfinder? &config=`gallery-nav` ]]


      core/components/wayfinder/configs/gallery-nav.config.php
      <?php
      $startId = 0;
      $level = 1;
      $outerTpl = '<ul>[[+wf.wrapper]]</ul>';
      $rowTpl = '<li><a href="[[+wf.link]]">[[+wf.linktext]]</a></li>';

      Revo 2.0.6

      It doesn’t want to play, no errors it just outputs nothing. It’s probably something silly but I can’ see it.

      Any ideas?
      Thanks
        • 28042 ☆ A M B ☆
        • 24,524 Posts
        Somebody has just posted about the startId and level values not working in a config file for Wayfinder in Revo. What happens if you put the startId and level as parameters in the Wayfinder snippet call?
          Studying MODX in the desert - http://sottwell.com
          Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
          Join the Slack Community - http://modx.org
          • 34120
          • 236 Posts
          Quote from: sottwell at Jan 13, 2011, 12:34 PM

          What happens if you put the startId and level as parameters in the Wayfinder snippet call?

          It works!

          Thanks for that, much appreciated.
            • 24074
            • 81 Posts
            i made it for Wayfinder to format th code as i wanted now i want to format HTML too if possible so instead of :

            <p><img title="Some Image" src="/images/image.png" alt="Image" />Lorem ipsum dolor sit amet, consectetur adipiscing elit. Phasellus nec lorem metus, sit amet volutpat risus. Mauris tincidunt commodo aliquam. Aenean congue orci mauris, sed posuere sapien. Curabitur non quam urna. Proin eget libero lorem, in scelerisque risus. Ut elit tellus, facilisis eu aliquet in, commodo sed quam. Ut vel diam felis, quis pellentesque urna. Quisque nec nunc lorem, in feugiat tellus. Nullam mollis elementum lorem sed molestie. Mauris bibendum hendrerit metus, eu bibendum nisl iaculis sit amet. Ut eleifend dictum purus, ut vehicula ante fringilla in. Quisque nec facilisis tellus. Aliquam dapibus, sem et faucibus ultrices, ante dolor dignissim purus, vitae tincidunt risus leo vitae metus. Nam commodo metus at ipsum tempor at auctor quam varius. Vivamus dapibus lobortis fringilla. Duis eu ultricies urna.</p>

            to get this:


            <p>
            <img title="Some Image" src="/images/image.png" alt="Image" />
            Lorem ipsum dolor sit amet, consectetur adipiscing elit. Phasellus nec lorem metus, sit amet volutpat risus. Mauris tincidunt commodo aliquam. Aenean congue orci mauris, sed posuere sapien. Curabitur non quam urna. Proin eget libero lorem, in scelerisque risus. Ut elit tellus, facilisis eu aliquet in, commodo sed quam. Ut vel diam felis, quis pellentesque urna. Quisque nec nunc lorem, in feugiat tellus. Nullam mollis elementum lorem sed molestie. Mauris bibendum hendrerit metus, eu bibendum nisl iaculis sit amet. Ut eleifend dictum purus, ut vehicula ante fringilla in. Quisque nec facilisis tellus. Aliquam dapibus, sem et faucibus ultrices, ante dolor dignissim purus, vitae tincidunt risus leo vitae metus. Nam commodo metus at ipsum tempor at auctor quam varius. Vivamus dapibus lobortis fringilla. Duis eu ultricies urna.
            </p>

            I understand it would be TinyMCE playground right? Same goes for other elements too, like <div>’s etc..

            thnx
              Radio sucks!
              • 24074
              • 81 Posts
              friendly bump smiley
                Radio sucks!
                • 28042 ☆ A M B ☆
                • 24,524 Posts
                That’s got nothing at all to do with Wayfinder huh huh
                  Studying MODX in the desert - http://sottwell.com
                  Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
                  Join the Slack Community - http://modx.org