Problems, need help? Have a tip or advice? Post it here.
3 posts Page 1 of 1
Hello guys,

I've spent 4 hours up to know to resolve this issue. I created a gallery page with slimbox (from gallery with slimbox example), and i use this code to display one folder for gallery in other page:

Code: Select all
<cms:pages masterpage="galerie.php" folder='proiecte'>
   <a href="<cms:show gg_image />" rel="lightbox-<cms:show k_page_name/>" <cms:if my_desc>title="<cms:show my_desc/>"</cms:if>>
<img alt="<cms:show k_page_title />" src="<cms:show gg_thumb />"/>
</cms:pages>


Everything works fine, but first image uploaded in folder it duplicates itself 3 times. This happens only in the page where I use this code. In gallery page, everything works as it should.

What is wrong?
Thank you very much for your help!

Attachments

Hi,

I'd suggest you please place a <cms:dump /> within the cms:pages loop being used by your code as follows -
Code: Select all
<cms:pages masterpage="galerie.php" folder='proiecte'>
    <cms:dump />
</cms:pages>

Please see how many pages get returned and whether they are in sync with the gallery entries as visible in Couch admin-panel.

I'd expect you see all the images in the 'projecte' folder being listed and that you won't see the reported duplication above.
If that is the case, then something should be wrong with the JS code being generated which is leading slimbox into believing that there are multiple entries for a single page.

Please let me know how it goes.
It may or may not have anything to do with this issue, but you are missing the following closing tag - </a>.
3 posts Page 1 of 1
cron