We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 23491 ☆ A M B ☆
    • 1,056 Posts
    I don’t know what my problem is, but out-of-the-box, calling Wayfinder in any fashion, e.g.

    [!Wayfinder!]


    ..does absolutely nothing?

    Am I missing something? ...DropMenu used to work and output all links. Is there something special needed out of the box to enable WF?

    NOTE:
    I have the most recent SVN trunk installed, with All default snippets/chunks, as well. Wayfinder is present...?
      Mike Reid - www.pixelchutes.com
      MODx Ambassador / Contributor
      [Module] MultiMedia Manager / [Module] SiteSearch / [Snippet] DocPassword / [Plugin] EditArea / We support FoxyCart
      ________________________________
      Where every pixel matters.
      • 15987
      • 786 Posts
      Call wayfinder like this:

      [!Wayfinder? &startId=`0`!]
        • 23491 ☆ A M B ☆
        • 1,056 Posts
        Quote from: kylej at Oct 13, 2006, 01:54 PM

        Call wayfinder like this:

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

        Rock on, Kyle!

        lol. That totally worked. Thank you!


        So, if you will, tell me this: I have created 2 chunks:

        topNavOuterTpl
        <ul [+wf.classes+]>[+wf.wrapper+]</ul>


        topNavRowTpl
        <li [+wf.classes+]><a href="[+wf.link+]">[+wf.linktext+]</a></li>


        Why does this method not work?

        [! Wayfinder? &outerTpl=`topNavOuterTpl` &rowTpl=`topNavRowTpl` &hereClass=`here` !]
        


        Hmmm... It appears this works:

        [!Wayfinder? &startId=`0` &outerTpl=`topNavOuterTpl` &rowTpl=`topNavRowTpl` &hereClass=`here`!]
        


        I bet it’s the spaces: [ !Way...
          Mike Reid - www.pixelchutes.com
          MODx Ambassador / Contributor
          [Module] MultiMedia Manager / [Module] SiteSearch / [Snippet] DocPassword / [Plugin] EditArea / We support FoxyCart
          ________________________________
          Where every pixel matters.
          • 23050
          • 1,842 Posts
          Hi guys,

          Is it possible to change the sort order of the document ? Instead of displaying,
          - doc 1
          - doc 2
          - doc 3

          Display

          - doc 3
          - doc 2
          - doc 1

          like it’s possible with Ditto using &sortDir ?

          Thanks smiley

          Edit : Also another question : Is it possible to display how many documents a folder contains ?
          For example :

          - Folder 1 (3 articles)
          - Folder 2 (15 articles) ...

          Thanks ! wink
            • 15987
            • 786 Posts
            I am planning on adding the sorting functionality, just need to set a new parameter for it.

            I will look into the document counting idea.

            Thanks,
            Kyle
              • 36805
              • 354 Posts
              Quote from: pixelchutes at Oct 13, 2006, 02:11 PM

              I bet it’s the spaces: [ !Way...

              no it’s the: &startId=`0`

              @ Ryan & kylej : Maybe it would be a good idea to let the Wayfinder snippet assume a startid of zero (like Dropmenu) instead of ignoring the entire call?
                • 15987
                • 786 Posts
                Currently it uses the current page as the startId, so without the startId parameter you get a submenu for the current page. If the current page has no children, obviously you don’t get a menu. So, I guess I figured it was easier to tell people if they want a menu from the root to set startId=`0` instead of for a submenu use startId=`[*id*]`
                  • 23050
                  • 1,842 Posts
                  Kylej, how to get the document parent id to call it as &startId ?

                  I display doc 23 (for example), which parent id is 22. I would like to call Wayfinder &starId=`22`. I tried with GetField snippet but doesn’t work

                  PS : I didn’t say it before but very nice snippet with so much way to customize output with css... Nice nice, good job ! wink
                    • 28042 ☆ A M B ☆
                    • 24,524 Posts
                    Wayfinder? &startId=`[*parent*]`
                      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
                      • 23050
                      • 1,842 Posts
                      What a shame !!! So simple and I didn’t find it embarrassed Thanks a lot grin

                      This discussion is closed to further replies. Keep calm and carry on.