We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 20600
    • 1 Posts
    hello,
    do you know the parameters of listindexer?
    • They are explained in the comment section at the beginning of the snippet code. For example:
      	   // $rootFolder [ NULL | string (comma separated page id's) ]
       	   // Decide which folder to pull recent documents from.
       	   // If you want to specify a few folders, comma separate them.
      	   // The default NULL will set current page as root. Using 0
       	   // would search site wide. Can be set with snippet parameter
      	   // $LIn_root like:
       	   // [[ListIndexer?LIn_root=3,6,88]]
      
        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
        • 10104
        • 5 Posts
        and do have an idea how to tell listindexer only to show the date without the link to the document.
        • you’d have to hack the snippet code, the line in question is line 439.
            // Link to page
            $output .= '<a href="[~'.$recentRecord['id'].'~]" title="'.strip_tags($recentRecord['pagetitle']).'">'.$recentRecord['pagetitle'].'</a> ';
          

          Why not just use Wayfinder calls, then, sorted by createdon, with custom templates?
            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