We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 30912
    • 463 Posts
    Am i being dense here, i know im under the weather and all but seriously.... i cant seem to work out how to have 1 image, but display the whole gallery when clicked in prettyPhoto...

    call:

    [[EvoGallery? &display=`single` &docId=`49`  &tpl=`gallery-ul` &itemTpl=`gallery-li`  &sortBy=`sortorder` &limit=`1` ]]


    tpl:

    <ul> [+items+]</ul>

    item tpl
    <li style="list-style-type:none; ">
    <a href="[+images_dir+][+filename+]" rel="prettyPhoto[gallery]" title="[+description+]"> <img src="assets/images/castello-website-location-panel-only.jpg" alt="Map of Castello di Postignano" width="239" height="322" /></a>
    </li>


    All i want is a user to click a single image but see 3 other images in a fancy box...
      • 18373 ☆ A M B ☆
      • 3,141 Posts
      You’ll have to fetch them all them, so &limit=`1` wont work.

      You can either hide image 2 and 3 using CSS, or use two EvoGallery calls - one to fetch the first image, and another one that fetches all. You’d need to modify your prettyPhoto JS initiation then to point to the right gallery when clicking the single image.
        Mark Hamstra • Developer spending his days working on Premium Extras and a MODX Site Dashboard with the ability to remotely upgrade MODX and extras to make the MODX world a little better.

        Tweet me @mark_hamstra, check my infrequent blog at markhamstra.com, my slightly more frequent ramblings at MODX.today or see code at Github.
        • 9995
        • 1,613 Posts
        I managed to do it by previewing all thumbs but with a div with a style height width and overflow:hidden; so only one thumb or link was visible.

        the above didn’t work for me and had no time to re re re overlook this.
          Evolution user, I like the back-end speed and simplicity smiley
          • 30912
          • 463 Posts
          Thanks, knew it’d be something simple in the end, i just couldnt see it.
            • 9995
            • 1,613 Posts
            im curious,

            did you do it by using 2 gallery calls, and use css or js to hide the limit=`1` thumb which will be previewed double?
            or did u used the overflow: hidden; version i used?
              Evolution user, I like the back-end speed and simplicity smiley
              • 30912
              • 463 Posts
              css, im no JQuery wiz.

              id just come back from honeymoon so trivial tasks were taking their toll - but again another example of how gtreat this community is.
                • 5340
                • 1,624 Posts
                I think I found a bug.

                The Manage Photos button/link only appears if there are more than 2 TVs set up for the document. I’ll look into it


                --------
                Hi,

                I can’t seem to make the managermanager rule work.

                I use modx 1.0.4, just updated to managermanager 0.3.9 and I have the following rules

                mm_widget_showimagetvs();
                mm_galleryLink('GalleryShortcut', '', '183', '3');



                From the evogallery.php code it seems that a tab should be created: mm_createTab($title, ’evogallery’, ’’, ’’, $iframecontent);
                ...but it doesn’t.

                Does this work on 1.0.5 only?

                Thanks

                Edit:
                Seems that the text field disappears but the tab is not created

                  • 5340
                  • 1,624 Posts
                  If anyone has problems with the Manage photos button you should replace

                  $output .= ’gl’.$mm_fields[$field][’fieldname’].’.remove();’."\n";
                  with
                  $output .= ’gl’.$mm_fields[$field][’fieldname’].’.hide();’."\n";

                  in the gallerylink.inc.php

                  I’m not sure if this happens for 1.0.5 but it did for my 1.0.4 setup
                    • 30912
                    • 463 Posts
                    Hey guys, i need some help here as im really confused.

                    So all of my images are uplaoding at 940pixels wide, which is the default setting according tot he wiki. its says i can change it in the config.inc.php in assets/modules/evogallery only i dont have a config.inc.php

                    Any ideas?
                      • 9198
                      • 100 Posts
                      Install version from github?
                      Now configuration in Modules config (Modules -> Manager modules -> EvoGallery -> Configuration)
                      No documentation update yet