Hi, here’s my structure:
Template:
...
{
[[$DittoMusic]]
}
...
$DittoMusic
[[Ditto? &parents=`33` &tpl=`Music` &display=`10` &orderBy=`menuindex DESC`]]
tpl Music
{
name:"[[+title]]",
mp3:"http://localhost/modx/assets/music/[[+description]]"
},
Okay so the thing is that I need to know if the element is the last one to be able to remove the comma at the end of the tpl. Is there any way ?
Thanks a lot, you guys helped me a lot since i’m here !