We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 31214
    • 3 Posts
    How is it possible to retrieve all documents that use a specific template no matter where they are located in a site?
      • 23571
      • 223 Posts
      Wow, I was searching with the same question. Is there a method for filtering Ditto output based on template/templateID?

      Based on my understanding it would be a filter excluding a certain template, kind of like: &filter=`templateid,3,1|`. I have tried this, but it doesn’t work. Any suggestions?
        • 4310
        • 2,310 Posts
        To exclude template 3 try :
        &filter=`template,3,1`

        To exclude multiple templates it’s :
        &filter=`template,3,1||template,4,1||template,5,1`
          • 23571
          • 223 Posts
          Got it. Thx.
            • 31214
            • 3 Posts
            Thanks, worked perfect smiley
              • 4310
              • 2,310 Posts
              Glad it’s working smiley
                • 10313
                • 375 Posts
                Quote from: bunk58 at Apr 28, 2009, 12:44 PM

                To exclude template 3 try :
                &filter=`template,3,1`


                Why would this EXCLUDE documents with template ID 3?

                The criterion "1" means "is NOT EQUAL", so this filter should exclude all documents with template ID != 3, resp. exclude all but those with template 3, or in other words: INCLUDE all documents with template 3.

                Am I wrong?