tag:help-archives.hannonhill.com,2010-02-09:/discussions/xslt-formats/3170-photo-galleryCascade CMS: Discussion 2013-11-15T20:36:28Ztag:help-archives.hannonhill.com,2010-02-09:Comment/300119092013-11-15T16:10:17Z2013-11-15T16:10:17Zphoto gallery<div><p>Hi,</p>
<p>It looks as though you are very close, but in your
<strong>image_set</strong> template you are not actually looping
through the images within each set, instead it is only grabbing the
first image within the index block (ie
<code>//system-data-structure/image_set/images/</code>).</p>
<p>Instead, I would simply create another template for your images
and call apply templates inside of your image_set template to loop
over each image within the set. I have attached an update to your
Format that should do the trick. Let me know how it works out for
you.</p>
<p>Please let me know if you have any questions.</p>
<p>Thanks!</p></div>Ryan Griffithtag:help-archives.hannonhill.com,2010-02-09:Comment/300119092013-11-15T16:36:32Z2013-11-15T16:36:51Zphoto gallery<div><p>Thanks for the quick reply. I adjusted the format and instead of
the images I get text. Attached screen shot.</p></div>jjohn352tag:help-archives.hannonhill.com,2010-02-09:Comment/300119092013-11-15T18:18:37Z2013-11-15T18:18:37Zphoto gallery<div><p>Hm, it looks as though the index block XML is being dumped
somewhere. Let me do some local testing and get back to you.</p></div>Ryan Griffithtag:help-archives.hannonhill.com,2010-02-09:Comment/300119092013-11-15T18:26:56Z2013-11-15T18:26:56Zphoto gallery<div><p>Ah, I see what happened there. Try changing the following
line:</p>
<p><code><xsl:template name="images"></code></p>
<p>To:</p>
<p><code><xsl:template match="images"></code></p>
<p>Let me know how this works out.</p>
<p>Thanks!</p></div>Ryan Griffithtag:help-archives.hannonhill.com,2010-02-09:Comment/300119092013-11-15T20:20:09Z2013-11-15T20:20:09Zphoto gallery<div><p>Excellent! That did the trick. Thanks for your help Ryan.</p></div>jjohn352tag:help-archives.hannonhill.com,2010-02-09:Comment/300119092013-11-15T20:36:28Z2013-11-15T20:36:28Zphoto gallery<div><p>Not a problem at all! I am glad to hear the Format helped
out.</p>
<p>Have a great day!</p></div>Ryan Griffith