We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 5091
    • 332 Posts
    Sorry, I don’t quite know how to address it in the subject line. embarrassed

    In this template I’d been working
    http://www.lotusfromthemud.com/goldenlotus1

    goldenlotus [Id#25]
      -- portfolio  [Id#28]
    --- portfolio1  [Id#29]
      -- contact
      -- about

    I have ’recent blog entries’ calls in the main template:
    [[Ditto? &startID=`25` &summarize=`9` &removeChunk=`Comments` &tpl=`blog_entries` &paginate=`1` &extenders=`summary,dateFilter` &paginateAlwaysShowLinks=`1` &tagData=`documentTags`]]

    I want to add another ditto call in the ’portfolio’ page with ’recent project entries’ like so, intendin to place it on the right column, so I added the below code in a chunk called ’recent_project’, then add the chunk in the right column Tv area. But the call isn’t working. I tried creating a new template and have the below code placed directly in there, it’s still showing the same.

    http://www.lotusfromthemud.com/portfolio.html

    [[Ditto? &startID=`28` &summarize=`10` &removeChunk=`Comments` &tpl=`projects` &paginate=`1` &extenders=`summary,dateFilter` &paginateAlwaysShowLinks=`1` &tagData=`documentTags`]]

    Can’t figure what I did wrong as it seemed working for the main site that used similiar call.



      • 18397
      • 3,250 Posts
      If you plan on having multiple Ditto calls using pagination on one page or using Reflect in your template make sure you use the &id parameter. Set it to a unique string and then update your placeholders to the format [+id_placeholder+]...
        • 5091
        • 332 Posts
        Thanks Mark, I still unable to get it working :’(

        I followed this thread :
        http://modxcms.com/forums/index.php/topic,12262.0.html

        Here is my call in the template:

        <h3 id="recent_entries">Recent Project entries</h3>
        <dl>[!Ditto?
        &startID=`27` &id=`portfolio` &summarize=`9` &removeChunk=`Comments`
        &tpl=`portfolio_entries` &paginate=`1`
        &extenders=`summary,dateFilter` &paginateAlwaysShowLinks=`1`
        &tagData=`documentTags`!]
        </dl>


        tpl in the "portfolio_entries" chunk

        <dt><a href="[~[+portfolio_pages+]~]" title="[+title+]">[+title+]</a></dt>
        <dd>[+description+]</dd>

        My page (#27) is un-cached,

        Ditto version: 2.1.BETA2

        Page in question (#27):
        http://lotusfromthemud.com/portfolio.html

        On top of this, it also disable the Ajax search.