We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 9830
    • 5 Posts
    So I’m using Ditto to render a list of blog posts. And it’s working great - however I would like to use a custom layout chunk for the linked page (it’s using the site default at the moment) without having to create an entirely new Template.

    Is there a way to make the linked pages in Ditto call a different chunk for formatting, instead of assigning the actual page a new template?

    This is what my Ditto call looks like:
    
    [!Ditto?config=`blog` &parents=`30`&orderBy=`pkDate DESC` &seeThruUnpub=`0` &dateSource=`pkDate` &dateFormat=`%b %e, %Y` &tpl=`blogListing`  &paginate=`1` &display=`20`  &paginateAlwaysShowLinks=`0`!]
    
    
      • 28042 ☆ A M B ☆
      • 24,524 Posts
      ??? The links Ditto generates are direct links to the individual resources. Once you click on the link from Ditto, you’re going directly to the page; Ditto is no longer involved. It’s the same as if the page were accessed with a menu, or its URL entered directly in the browser address bar. The resource being linked to has to have the template you want it to have when it’s being viewed. Again, Ditto has nothing at all to do with the resources it’s listing.
        Studying MODX in the desert - http://sottwell.com
        Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
        Join the Slack Community - http://modx.org