[[getResources? &parents=`[[*id]]` &tpl=`portfolio`]]
<li class="[[dynamicWidget]] [[*category]]"> <a href="[[~[[+id]]]]"> <!-- <img width="870" height="400" alt="[[+description]]" src="/images/foto1.png"></a> --> <img src="/images/foto3.png" alt="[[+description]]" /> </li>
Where's your reference to the gallery, a TV? Then use that TV value in a Gallery/GalleryItem snippet call to display it.
Could also just store the images in a MIGX TV: https://www.markhamstra.com/modx-blog/2012/04/managing-galleries-with-migx/ or regular "image" TVs.
Quote from: markh at Feb 18, 2013, 09:59 AMWhere's your reference to the gallery, a TV? Then use that TV value in a Gallery/GalleryItem snippet call to display it.
Could also just store the images in a MIGX TV: https://www.markhamstra.com/modx-blog/2012/04/managing-galleries-with-migx/ or regular "image" TVs.
yes, a tv with the value galleryalbumlist. but how to use this value in my chunk displayed above?
edit: is this possible?
<li class="[[dynamicWidget]] [[*category]]">
<a href="[[~[[+id]]]]">
<img src="" alt="[[+description]]">[[*gallery]]
[[!Gallery? &album=`quasi` &thumbProperties=`{"f":"jpg","q":"90%"}`]]
</a>
</li><li class="[[dynamicWidget]] [[*category]]">
<a href="[[~[[+id]]]]">
[[!Gallery? &album=`[[~[[+gallery.name]]]]`]]
<!--besch: [[+description]]-->
</a>
</li>The [[~4]] syntax is only for resource URLs.Thanks; this was the right solution!
The Gallery album list TV should return the album ID when referencing the template variable. You'll need to make sure getResources has &includeTVs=`1` and then use something along the lines of [[+tv.mytvname]] to get the album ID, and use that instead of "quasi" in your first example of your last post.
<li class="[[dynamicWidget]] [[+tv.category]]">
<a href="[[~[[+id]]]]" title="[[+description]]">
[[!Gallery? &album=`[[+tv.gallery]]` &limit=`1` &thumbWidth=`450` &thumbHeight=`450` &thumbZoomCrop=`2`]]
</a>
</li>
<li class="background4 Responsive Design">
<a href="quasi.html" title="Ontwerp en implementatie van portfolio design">
<div class="gal-item-active">
<a href="webdesign/?galItem=1&galAlbum=1&galTag=" title="29639536-ae5f-4e1c-9ae0-7a98a1c2a2c7.jpg" >
<img class="" src="/assets/components/gallery/connector.php?action=web/phpthumb&w=450&h=450&zc=1&far=C&q=90&src=%2Fassets%2Fgallery%2F1%2F1.jpg" alt="29639536-ae5f-4e1c-9ae0-7a98a1c2a2c7.jpg" />
</a>
</div>
</a>
</li>
<div class="gal-item-active">
<a href="webdesign/?galItem=1&galAlbum=1&galTag=" title="29639536-ae5f-4e1c-9ae0-7a98a1c2a2c7.jpg" >
<img class="" src="/assets/components/gallery/connector.php?action=web/phpthumb&w=450&h=450&zc=1&far=C&q=90&src=%2Fassets%2Fgallery%2F1%2F1.jpg" alt="29639536-ae5f-4e1c-9ae0-7a98a1c2a2c7.jpg" />
</a>
</div>
</li><img class="" src="/assets/components/gallery/connector.php?action=web/phpthumb&w=450&h=450&zc=1&far=C&q=90&src=%2Fassets%2Fgallery%2F1%2F1.jpg" alt="29639536-ae5f-4e1c-9ae0-7a98a1c2a2c7.jpg" />
[[GalleryItem? &id=`[[+tv.gallery]]` &toPlaceholders=`1`]]
<li class="[[dynamicWidget]] [[+tv.category]]">
[[!+galitem.image:notempty=`
<a href="[[~[[+id]]]]" title="[[+description]]">
<img src="[[+galitem.image]]" alt="[[+galitem.name]]" />
</a>
`]]
</li>