We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 28376
    • 222 Posts
    Is there a snippet out there that will list a minium of 5 or more related documents. If you go to the following url here
    http://www.factmag.com/2010/01/11/fabric-feyenoord-and-4hero-an-interview-with-martyn/

    Scroll to the bottom and you will see Related Posts. That is what I need to do is related documents.


      • 20532
      • 14 Posts
      You need to create a template variable that allows you to associate content. It will be a multi-select listbox that has input option values similar to this:

      @EVAL return substr($modx->runSnippet('Ditto', array("parents"=>"723","depth"=>"1","display"=>"all","showInMenuOnly"=>"0","sortBy"=>"pagetitle","sortDir"=>"ASC", "tpl"=>"@CODE ||[+pagetitle+]==[+id+]")), 2);


      Also, set the widget to delimited list.

      Then call this new template variable where it’s needed in the template.