We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 9995
    • 1,613 Posts
    I'm breaking my head on finding a solution to have one page with albumthumbs, when clicking on one of the thumbs I need to show all thumbs in fancybox popup of that album.

    I need to hide the thumbs, only show 1 image.
    I can do rel="album[+doc_id+]" for each album.

    But I'm a bit stuck now.

    Anyone maaged to get fancybox working with single albumpics?



      Evolution user, I like the back-end speed and simplicity smiley
      • 22427
      • 793 Posts
      I once realized something like that, however without using fancybox. But I think, the idea could be helpful.

      On an overview page I listed the galleries, each represented by an randomly chosen thumb:
      [!Ditto? &parents=`[*id*]` &sortBy=`menuindex` &sortDir=`ASC` &tpl=`EG_TeaserTpl` &display=`999` !]

      The chunk EG_TeaserTpl:
      [[EvoGallery? &docId=`[+id+]` &display=`images` &sortBy=`RAND()` &limit=`1` &itemTpl=`tpl_EG_overv_item`]]

      The chunk tpl_EG_overv_item:
      <div class="floatbox">
      	<div class="thumbscontainer">
      	<ul class="thumbs">
      	         <li>
          	         <a href="[~72~]?picDataString=[+content_id+]~[+id+]~[+filename+]~[+title+]~[+description+]"><img src="[+thumbs_dir+][+filename+]" alt="[+title+]" title="[+title+] ~ [+description+]" /></a>
              </li>
      	</ul>
      </div>
      <h3><a href="[~[+content_id+]~]">[[GetField? &docid=`[+content_id+]` &field=`pagetitle`]]</a></h3>
      <p>[+description+]</p>

      The page with all the thumbs had this EvoGallery call:
      [!EvoGallery? &docId=`[*id*]` &display=`images` &sortBy=`filename` &tpl=`tpl_EG_all_thumbs` &itemTpl=`tpl_EG_thumb_item` !]

      The chunk tpl_EG_all_thumbs:
      <div class="floatbox">
          <div class="thumbscontainer">
              <ul class="thumbs">
              [+items+]
              </ul>
          </div>
      </div>
      

      The chunk tpl_EG_thumb_item:
      <li>
      <a href="[~72~]?picDataString=[+content_id+]~[+id+]~[+filename+]~[+title+]~[+description+]"><img src="[+thumbs_dir+][+filename+]" alt="[+title+]" title="[+title+] ~ [+description+]" /></a>
      </li>


      The page with ID 72 was the page to display a single picture. I used jquery-cycle here, but that should be easy to modify for fancybox. The template of this page contained this EvoGallery call:
      [!EvoGallery? &docId=`[[getPicFolder]]` &display=`images` &type=`jquery-cycle` &tpl=`tpl_EG_img_cycle` &itemTpl=`tpl_EG_img_item` &sortBy=`filename` !]
      


      It's a while ago I did this, and I'm sorry not to be able to go deeper into details. Hopefully it might give you an idea, anyway.
        • 9995
        • 1,613 Posts
        Thanks, Evogallery doesn't work into ditto sad
        Are you using 1 page there or is the thumb page a new one?

        I think I'm going to use multitv TVs, doing it the easy way this time because running out of projecttime. [ed. note: fourroses666 last edited this post 13 years, 7 months ago.]
          Evolution user, I like the back-end speed and simplicity smiley
          • 9995
          • 1,613 Posts
          * When I only use EvoGallery and manually add the id it its call its possible but I don't like it when the client has to add the gallery id.
            Evolution user, I like the back-end speed and simplicity smiley