Quote from: doze at Feb 14, 2010, 10:55 AM
Just use ditto to list the gallery documents.. I bet it can order by TV content too. See the docs for it.
And you can use maxigallery in Dittos row template to get the pics.
Hi again!
Well, I followed your advise but could not manage MG to show up through the Ditto call using &tpl.
This is what happens:
The following code is displayed nicely by [!MaxiGallery? &display=`childgalleries` &childgalleries_limit=`5` &childgalleries_order_by=`[*mytv*]`!] :
[+maxigallery.pageinfo.pagetitle:htmlent+] - for the page info.
[+maxigallery.pageinfo.tv.mytv+] - for my tv.
and plus some html code as usual.
It works with MaxiGallery. Now I want to paginate and sort it with Ditto. I made a template chunk {{mg_childs}} with that code. Then called Ditto the following way:
[!Ditto? &tpl=`mg_childs` &summarize=`5` &paginate=`1` &paginateAlwaysShowLinks=`1` &orderBy=`[*mytv*]`!]
<div id="ditto_pages"> [+previous+] [+pages+] [+next+] </div>
Is that the idea? Well, html code is displayed OK

of course. As well as pagination. But those maxigallery placeholders are simply empty

Ditto doesn’t see them.
Any ideas why? Thanks in advance!