We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 33982 ☆ A M B ☆
    • 476 Posts
    So I’m having a bit of a problem w/the following: I’m building this site for a customer and I’ve got a ditto being used on a page that disappears when you leave the first page of pagination (i.e. when you click on 2 or 3 in the pagination links at the bottom of the page, the ditto disappears on the right hand of the page). Here’s the page in question:

    http://66.240.226.230/Video

    So the page has the following configuration. The video thumbnails on the left are being called on the document that is unchached with the following ditto:

    [[Ditto? &startID=`[*id*]` &tpl=`videotpl` &summarize=`4` &paginate=`1` &paginateAlwaysShowLinks=`1` &sortDir=`DESC` &hideFolders=`1` &depth=`2` &extenders=`summary` &truncLen=`230` &truncOffset=`5` &trunc=`1` &sortBy=`pub_date` ]]

    Now, the ditto on the right (the one that keeps disappearing after clicking on the pagination links at the bottom) has the following:

    [!Ditto? &documents=`54` &tpl=`featuredproducts`!]

    The tpl chunk "featuredproducts" is defined here:

    <a href="#"><img id="pagesbodycontentfeaturedproductimg" src="[+tvproduct1+]" alt="Bosu Ball" /></a>
    <a href="#"><img id="pagesbodycontentfeaturedproductimg" src="[+tvproduct2+]" alt="Bosu Ball" /></a>
    <a href="#"><img id="pagesbodycontentfeaturedproductimg" src="[+tvproduct3+]" alt="Bosu Ball" /></a>

    As you can see I’m calling it (the featured product ditto) from a different document that feeds into this page. The reason I’m using this configuration is that when the customer wants to change the Featured Product, they only have to obviously do it on one document and it will change across all the documents that use it. But unfortunately it keeps disappearing.

    Am I doing something wrong with my cached settings? I’ve tried a hundred different configurations with the same result! sad

    Thanks!
      Precision Web Development ... SmashStack.com
      • 18397
      • 3,250 Posts
      Set a unique &id=`value` for each call.
        • 33982 ☆ A M B ☆
        • 476 Posts
        Hey Mark, thanks for your help. I did what you suggested and at first it didn’t work, but then I gave only 1 of the ditto calls (not both) it’s own id and then they work together fine. When I gave both ditto calls an id, the pagination at the bottom dissappeared...strange. But at least it’s working now...thanks again!
          Precision Web Development ... SmashStack.com
          • 18397
          • 3,250 Posts
          The pagination at the bottom disappeared because, like the url parameters, they are prefixed with the value of &id and an underscore.