Quote from: MadeMyDay at Nov 09, 2010, 03:20 PM
I just finished a version where you can sortby=`resources`...
Based on this idea I took a different approach. I filed pull request
#23 for it.
This is the web: the only thing you know about who will come is that you don't know who will come.
Could you provide your gR-call?
[[!getResourcesNew? &resources=`[[*ArtistesTournee]]` &sortby=`resources` &tpl=`bloc_list_artiste` ]]
[[*ArtistesTournee]] => 51,55,52,54,50,57,60,64,65,66,71,72,73
-
MODX Staff
- 10,725 Posts
There is no such column called resources, so you can’t sort by it, as the error reveals.
You might want pagetitle, alias, menutitle, id, createdon, editedon, or publishedon as your sort criterion.
Ah ... Then this is perhaps posted in the wrong place.
-
☆ A M B ☆
- 86 Posts
I have gone over the documentation, but must be missing something. Everything works with my getResource snippet except showing the image. The img src is empty.
Here is what I have for the call:
[[!getResources? &parents=`13` &tpl=`summary` &includeTVs=`1` &processTVs=`1` ]]
Here’s the chunk:
<table>
<tr>
<td><img src="[[+tv.tvThumbnail]]" style="width:100px;" alt="[[+pagetitle]]" /></td>
<td><p>[[+introtext]]<br />
<a href="[[~[[+id]]]]">Read the full story"</a></p></td>
</tr>
</table>
Your help is appreciated. Thanks!