We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 43864
    • 151 Posts
    I’m using the gallery-tool cliche in modx revolution (2.2.2).

    I have 3 questions, the first one is absolutely necessary:

    1) I don’t get a next or previous on the fancybox??
    2) How can I use another tool to show the pics? For example clearbox or colorbox?
    3) Is there a way to get de album-title under (or over) the thumbnail?

    The link to the test-website where you can see the problem: http://www.dakwerken-covents.be/fotoalbum.html

    I’m not very good in php.
      • 9995
      • 1,613 Posts
      http://forums.modx.com/thread/75914/cliche-details-fancybox-no-next-prev

      1. check reply #2.
      2. u have to do it yourself, u can change the chuck codes and add the js yourself.
      that package has fancybox and gallerific, although i haven't got gallerific to work
      3. yes, change the itemTpl chunk. Check the link above..

      
      <ul class="item">
         <li class="album-icon">
            <a rel="fancypop" title="[[+name]]" href="[[+image]]">
               <img width="[[+width]]" height="[[+height]]" title="[[+name]]" alt="[[+description]]" class="attachment-thumbnail" src="[[+thumbnail]]"/>
            </a>
           <h2 class="mytitle"><a rel="fancypop" title="[[+name]]" href="[[+image]]">[[+name]]</a></h2>
         </li>
      </ul>
      
      

        Evolution user, I like the back-end speed and simplicity smiley
        • 43864
        • 151 Posts
        Thx. But I don't get it work like I want. I want to show my 6 albums and when I click on an album then open a fancybox (or other) where I can see the pics. If I use clichealbum? then I have to add an id for the specific album, but I want to show all the albums (so I have to use cliche?). I really love the backend of this plugin so I really want to use it on the website. I don't understand why the next/prev isn't something standard in the plugin.
          • 9995
          • 1,613 Posts
          hmm, i don't know about multiple albums on 1 page if you are trying to accomplish that.

          i should be possible. you must have all images hidden and different rel="xxx" calls.

          the tricky will probably be show 1 image (and make it pop and show the others).

          isn't it possible to show 1 albumpic (with getresources) and after click go to the thumb page and let it pop there?
            Evolution user, I like the back-end speed and simplicity smiley
            • 43864
            • 151 Posts
            I have the overview-page and after click you go to the album, but te main problem is that it doesn't use fancybox to show the pics.

            [[!Cliche? &view=`albums` &browse=`2` &thumbWidth=`160` &thumbHeight=`160`]]


            You can see te result here: http://www.dakwerken-covents.be/fotoalbum.html

            I just don't get it work. With the plugin Gallery I can make it work, but I find the backend of Cliche much better and the speed is also a lot better than Gallery.

            I hope that the author makes the documentation more extended.
              • 9995
              • 1,613 Posts
              Well i used &view=items and for the overview getresourses and dunno about &view=albums.

              U can try using these or some of these in your call.
              Or at least the js and itemtpl (for the next buttons).

              &display=`galleriffic` 
              &config=`config` 
              &css=`cliche-stylesheet` 
              &js=`cliche-js` 
              &itemTpl=`itemTpl` 
              

              http://forums.modx.com/thread/75914/cliche-details-fancybox-no-next-prev#dis-post-422551

              Works here smiley
              http://tinyurl.com/d6n255x
                Evolution user, I like the back-end speed and simplicity smiley
              • Hello,
                I use gallery to display my albums but i think clichet is more user firendly. In gallery there is "galleryalbumlist" tv so i can assign a gallery to a specific ressource, it is very usefull to me.

                [[*Galleryalbum]]` &toPlaceholder=`Gallery` &useCss=`0` &containerTpl=`AlbumContainer` &thumbTpl=`ItemThumb` &imageWidth=`1400` &imageHeight=`800` ]]

                Is there a way to do the same with clichet ? I'm not a good developper, i need to be guided to do that.

                I might have missed something.

                It would be nice if someone could help, thank you.
                  • 41913
                  • 8 Posts
                  And I just have a quick question. How do I change the size of the full size image? Right now it outputs it in original size when I click the thumb. I was looking for a max width of 800 or something. I can only find parameters for the thumbnail size.

                  Any ideas?
                    • 9995
                    • 1,613 Posts
                    Maybe you can use something like phpthumb ?
                      Evolution user, I like the back-end speed and simplicity smiley
                      • 41913
                      • 8 Posts
                      Yes, I thought so too. So what I did was adding phpThumbOf to the itemTpl template. Like this:

                      <dl class="item">
                          <dt class="album-icon">
                              <a class="zoom" title="[[+name]]" href="[[+image:phpthumbof=`w=800`]]">
                                  <img width="[[+width]]" height="[[+height]]" title="[[+name]]" alt="[[+description]]" class="attachment-thumbnail" src="[[+thumbnail]]"/>
                              </a>
                          </dt>
                      </dl>


                      The problem is that fancybox doesn't recognize the new size and therefore don't adjust the box size.. so I end up with a big white box with a resized image in it.