We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 36723
    • 94 Posts
    Hi I have a ditto call that I want to go one page back from the most recent. It worked but then I added a page from a different template which I want ditto to ignore or filter which it does but then I would like my start to go back 2 instead of 1. IS there anyway around this, since I would like to have two different templates in this section.

    [!Ditto? &parents=`54` &tpl=`sidebar`  &sortBy=`createdon`  &display=`2` &sortDir=`DESC`  &filter=`id,82,2 | id,87,2`  &start=`1` !]
    
      • 5340
      • 1,624 Posts
      Have you tried

      &filter=`template,YourTemplateID,2 | template,YourTemplateID,2`

      or something similar?
        • 36723
        • 94 Posts
        Good suggestion, I tried it, does not seem to work? I tried templateid also. Any other ideas?
        Scratch that it works now. I am not sure why?

        I changed my code to not equals "1" and to the template id I wanted to use 18 and it works...? I maybe missing something?
        I was using 2 which is equal to?

        works...
        &filter=`template,18,1`
        


        does not work
        &filter=`template,18,2`