We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 3689
    • 264 Posts
    Right now, Ditto is pulling the first image of my maxigallery to the events page exactly like I want but its pulling the thumbnail. I want it to pull a thumbnail, but my site.com/events/ thumbnails should have a width of 186px while my site.com/events/event01 thumbnails are 77px which they end up being on site.com/events.

    Ditto Call on site.com/events :
    [!Ditto? &tpl=`eventsList` &orderBy=`eventDate DESC`!]


    eventsList:
    <div class="eventcontainer span-6">
    <div class="eventimg clear">
    [[MaxiGallery? &gal_query_ids=`[+id+]`&limit=`1` &galleryOuterTpl=`galOutter` &galleryPictureTpl=`galPic`]]
    </div>
    <div class="eventtitle">
    <h4><a href="[+url+]">[+title+]</a></h4>
    </div>
    </div>


    Maxigallery on site.com/events/events01 :
    [!MaxiGallery? &display=`embedded` &upload_field_count=`6` &quality_pic=`100` &quality_pic=`100` &css=`assets/css/maxi.css` &max_big_size=`800` &thumb_use_dropshadow=`0` &max_thumb_size=`77` &max_pic_size=`800` &embedtype=`external` &pics_per_row=`3`!]


    How do I get a thumbnail thats 186px width instead of 77px for the site.com/events page?
      • 20413
      • 2,877 Posts
      2 ways I know of
      1. Set the size manually in galleryPictureTpl -> galPic
      ...
      [+maxigallery.strings.click_to_zoom+]" width="77" height="" alt="[+maxigallery.picture.title:htmlent+] [+maxigallery.strings.click_to_zoom+]" /></a>

      2. Use phpThumbs http://modxcms.com/forums/index.php/topic,34127.0.html in that same tpl
        @hawproductions | http://mrhaw.com/

        Infograph: MODX Advanced Install in 7 steps:
        http://forums.modx.com/thread/96954/infograph-modx-advanced-install-in-7-steps

        Recap: Portland, OR (PDX) MODX CMS Meetup, Oct 6, 2015. US Bancorp Tower
        http://mrhaw.com/modx_portland_oregon_pdx_modx_cms_meetup_oct_2015_us_bancorp_tower
        • 3689
        • 264 Posts
        Quote from: mrhaw at Sep 22, 2009, 08:57 PM

        2 ways I know of
        1. Set the size manually in galleryPictureTpl -> galPic
        ...
        [+maxigallery.strings.click_to_zoom+]" width="77" height="" alt="[+maxigallery.picture.title:htmlent+] [+maxigallery.strings.click_to_zoom+]" /></a>

        2. Use phpThumbs http://modxcms.com/forums/index.php/topic,34127.0.html in that same tpl

        How do I have 186px thumbnails on site.com/events and 77px thumbnails on site.com/events/events01 though? thats what is confusing me the most
          • 7923
          • 4,213 Posts
          Do two different galleryPictureTpl’s and use them in your calls.


            "He can have a lollipop any time he wants to. That's what it means to be a programmer."