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

    im trying to filter out some documents that are case studies as theyre are per section and theres onyl a few but when i try to use 2 equals clause it returns no documents:
    heres what doesnt work

    [[Ditto? &startID=`21` &filter=`id,32,1|id,36,1` &tpl=`CaseStudyLink` &sortBy=`date` &dateSource=`date`]]

    and heres what does:

    [[Ditto? &startID=`21` &filter=`id,33,2|id,38,2|id,34,2|id,35,2` &tpl=`CaseStudyLink` &sortBy=`date` &dateSource=`date`]]

    cant understand why really (first time using ditto laugh)

    thanks for any help
      • 36592
      • 970 Posts
      &filter=`id,32,1|id,36,1`

      I think this filter means...
      exclude documents "whose id is not 32" or "whose id is not 36".
      So all the documents are excluded.
        • 30912
        • 463 Posts
        Yeah, but that means i have to exclude every document i dont want doesnt it? or is there a way to make it be equal to two docment ids like 34 and 35 and ignore the rest?
          • 36592
          • 970 Posts
          Quote from: Tyreal2012 at Sep 29, 2008, 10:16 AM

          Yeah, but that means i have to exclude every document i dont want doesnt it?
          I believe so if you have to filter out some documents only using their document ids.

          Are there any other parameters you can specify which documents to be excluded ?
          If it’s so complicated, you can make custom extender.

          Quote from: Tyreal2012 at Sep 29, 2008, 10:16 AM

          is there a way to make it be equal to two docment ids like 34 and 35 and ignore the rest?
          &documents=`34,35`
            • 30912
            • 463 Posts
            Thanks, I’ll go look see smiley