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
    Wayfinder sure sure is great! I had my first need to try the includeDocs param today... however, no matter what I pass when using includeDocs, I never get any output.

    Snippet call below:
    [!Wayfinder? &ph=`footerLinks` &outerTpl=`footerOuterRowTpl` &rowTpl=`footerRowTpl` &startId=`0` &includeDocs=`10,30,31,39,32` &hereClass=`on`!]
    



    Quote from: "My
    [+footerLinks+]

    NOTE: If I use the exact same snippet call above, minus includeDocs, I get output as expected...

    Does it matter that includeDocs are from an array of other places/containers?

    UPDATE: I have turned on debug and also ran the generated SQL... Wayfinder is definitely running the SQL and brining back the correct documents (amongst many other)...I’m not sure where the filter process begins to truly filter down to JUST the includeDocs list of: 10,30,31,39,32, but regardless, I still get NO output??

    In looking at the WF source code, includeDocs reference is minimal...it doesn’t make any sense to me why I get no output, but the SQL returns many records (and is also displayed in the debug)
      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
      I think the problem is that if you do not have any of the containing folders included in your snippet call it does not know where to place the output. Due to the way the templating works it is trying to nest the documents, but cannot if the parents are not included.
        • 23491 ☆ A M B ☆
        • 1,056 Posts
        Quote from: kylej at Mar 20, 2007, 05:52 PM

        I think the problem is that if you do not have any of the containing folders included in your snippet call it does not know where to place the output. Due to the way the templating works it is trying to nest the documents, but cannot if the parents are not included.

        Aahhhh...makes sense. Well, let’s see what I can do.


        UPDATE:
        I tried adding the parents, and indeed everything started coming through. Unfortunately, I need a way to JUST get the IDs passed, regardless AND WITHOUT the parent folders either. Too bad there isn’t a param for FORCING includeDocs (and having output be limited to JUST those IDs) e.g.
        &idList=`1,20,213`
        I wonder if I could just use Ditto in this case? (although I really prefer the Outer/Parent templating Wayfinder provides...)

        Nice! I was able to get the same functionality via Ditto:

        [!Ditto? &debug=`0` &hideFolders=`0` &tpl=`sitemap_tpl` &depth=`2` &startID=`0` &where=`id in (10,39,32,30,31)` &display=`5` &showInMenuOnly=`1` &seeThruUnpub=`1` &sortBy=`pagetitle` &sortDir=`ASC` !]
        
          Mike Reid - www.pixelchutes.com
          MODx Ambassador / Contributor
          [Module] MultiMedia Manager / [Module] SiteSearch / [Snippet] DocPassword / [Plugin] EditArea / We support FoxyCart
          ________________________________
          Where every pixel matters.