We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 3435
    • 37 Posts
    Sorry - it was late and at the end of a long day when I looked at this. I’ve got to the bottom of the problem, which was nothing to do with Ditto - the user had selected the wrong template for the page.

    Hi all,

    I’ve got a problem with a page which uses Ditto - the links to display the first two stories in full are not working, but the links for the last 2 work perfectly.

    The template contains the ditto call:
    [!Ditto? &parents=`47` &display=`4` &orderBy=`createdon DESC` &tplFirst=`news1` &tpl=`news2` &extenders=`summary`!]

    I have tried this cached and uncached.

    The tpls are:
    <div class="news1box">
    <div class="news1box_head">
    <h2>[+pagetitle+]</h2>
    </div>
    <div class="news1box_body">
    <p>[+storyimage+] [+summary+]</p>






    <p class="more"><a href="[~[+id+]~]" class="fltrt">Read story in full</a></p>



    </div>
    </div>

    and

    <div class="story">
    <div class="news2box">
    <div class="news2box_head">
    <h2>[+pagetitle+]</h2>
    </div>
    <div class="news2box_body">
    <p>[+summary+]</p>
    <p><a href="[~[+id+]~]">Read story in full</a></p>
    </div>
    </div>
    </div>

    I’m really confused as the second tpl is used to output 3 stories on the page and the Read in full links for stories 2 and 3 both work! Any guidance to prevent me going mad would really be appreciated!