Hi,
I’m a little confused with this need :
I set up MG to display on the same pages the thumbg list and the normal image too (see prvious post) and spiced up this with js and jQ to automatically fired the first image of the gallery at page loading. ok
But I’d like to recall with a Ditto list from the parent folder (category) all the first MG images associated to all the sub folder and actually stored into the ftp gallery/... directory
cat1
+---folder1 associated to MG xx
+---folder2 associated to MG yy
and so on
Not sure to be very clear...
As thos images are not in anyway store in any TV I dont see how to get them now (without having to add a new img TV and having to manually set up it’s src)
Thank a lot
Schtroumpf Grognon - Grouchy Smurf
---------------------------------
Faites pas attention.. - Don't pay attention
http://www.dzi-neo.net
-
☆ A M B ☆
- 24,524 Posts
Do you need Ditto for this? You can use another MaxiGallery call, telling it which galleries you want displayed, with different parameters.
You can get the first image from a specified gallery with the following call: [!MaxiGallery? &gal_query_ids=`67` &limit=`1`!]
That would get the first picture from gallery id 67. Use that kind of call in the Ditto template and the id you get from Ditto’s [+id+] placeholder.
"He can have a lollipop any time he wants to. That's what it means to be a programmer."
ah!
I knew it was ok to reuse MG thru Ditto
I’ll give a try asap.
You’re great I was very confuse with the richness of MG
thank you very much Susan and Doze.
ps Thank again Doze to have pushed me to jQuery
Schtroumpf Grognon - Grouchy Smurf
---------------------------------
Faites pas attention.. - Don't pay attention
http://www.dzi-neo.net
hum
hi
I just tried this and the MG call is not interpreted (the Ditto output contains the MG call as a text string) like this:
[!MaxiGallery? &gal_query_ids=`75` &limit=`1` !] where I was expecting its own output.
I probably missed or did not understood something ...?
ditto tpl is
<div>
[!MaxiGallery? &gal_query_ids=`[+id+]` &limit=`1` !]
<a href="[~[+id+]~]" title="voir [+longtitle+]"> <h3>[+title+]</h3></a>
</div>
called with:
<div class="preview-projets">
[!Ditto? &depth=`1` &display=`all` &sortBy=`title` &sortDir=`asc` &language=`francais` &tpl=`ditto-projets-tpl` &noResults=`Rien de récent. ` !]
</div>
Schtroumpf Grognon - Grouchy Smurf
---------------------------------
Faites pas attention.. - Don't pay attention
http://www.dzi-neo.net
Did you try it with [[........]]?
[[MaxiGallery? &gal_query_ids=`[+id+]`&limit=`1`]]
damn!
you’re right ...
Thanks
I dont understand why the cached call works and the uncached one not att all...
Schtroumpf Grognon - Grouchy Smurf
---------------------------------
Faites pas attention.. - Don't pay attention
http://www.dzi-neo.net
There is a bug by desing in MODx that snippet calls inside each other needs to alter caching level..
Eg. You cannot have [!Snippet1? ¶m=`[!Snippet2!]`!] or [[Snippet1? ¶m=`[[Snippet2]]`]]
But you can have [!Snippet1? ¶m=`[[Snippet2]]`!] or [[Snippet1? ¶m=`[!Snippet2!]`]]
Also the level of document caching comes to play in this. Don’t remember the exact circumstances where the calls won’t work, but rule of thumb can be to always alter the caching level when snippets are called inside each other and in chunks.
"He can have a lollipop any time he wants to. That's what it means to be a programmer."
oh yes I know this ..but I did not realized yet I call Ditto uncached too.
grrr..
Anyway I’ll be smarter next time (maybe!)
By the way, you can check the result on the site still on development here:
http://www.marion-talagrand.com/urbain-paysage.html
I’m still experimented some jQ bonus on this list.
Schtroumpf Grognon - Grouchy Smurf
---------------------------------
Faites pas attention.. - Don't pay attention
http://www.dzi-neo.net