modxbot / migrate

A testground for migrating issues and other such fun
0 stars 0 forks source link

GetResources ability to use inline code for template #10338

Open kenquad opened 10 years ago

kenquad commented 10 years ago

kenquad created Redmine issue ID 10338

Sometimes I want to quickly put together a list of resources, without adding yet another template chunk for the rows. I'd like to see a getResources property like the &tplCode parameter in fileDownloadLink: [[http://rtfm.modx.com/extras/revo/filedownload-r/filedownload-r.filedownloadlink]]. It would work something like this:

@[[getResources? &parents=123 &tplCode=<li>[[+pagetitle]]</li> ]]@

Much simpler than making a new template chunk, no? Also probably lighter on system resources.