We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 20349 ☆ A M B ☆
    • 453 Posts
    Hi all!

    I’m doing a list of galleries and want to put latest added childgalleries in a jQuery slider.

    The thing is that I must use special html markup so the slider can work.... like this:

    <div class="scrollContainer">
      <div class="panel" id="panel_1">
    [!MaxiGallery? &offset=`1` &childgalleries_limit=`1` &childgalleries_ids=`1044,1042` &display=`childgalleries` &childgalleries_order_by=`pub_date` &childgalleries_order_direction=`DESC` &order_by=`pos` &childgalleryTpl=`thumbs_gal_summer` &lang=`hr`!]
      </div>
    
      <div class="panel" id="panel_2">
    [!MaxiGallery? &offset=`1` &childgalleries_limit=`1` &childgalleries_ids=`1044,1042` &display=`childgalleries` &childgalleries_order_by=`pub_date` &childgalleries_order_direction=`DESC` &order_by=`pos` &childgalleryTpl=`thumbs_gal_summer` &lang=`hr`!]
      </div>
    
      <div class="panel" id="panel_3">
    [!MaxiGallery? &offset=`2` &childgalleries_limit=`1` &childgalleries_ids=`1044,1042` &display=`childgalleries` &childgalleries_order_by=`pub_date` &childgalleries_order_direction=`DESC` &order_by=`pos` &childgalleryTpl=`thumbs_gal_summer` &lang=`hr`!]
      </div>
    
    </div>
    
    
    
    ...and so on till 5 or more panels.......
    


    As you can I tried it offseting it with &offset=`1` but with no luck.... what am I doing wrong?

    Any help? Doze?


    P.S. live example can be found on:
    croevent.net/adria-ljeto-2010
      BASE - Web Design Studio
      MODX Ambassador

      Website
      • 7923
      • 4,213 Posts
      Unfortunately there is no offset parameter for childgalleries query.

      The &offset paramter tells maxigallery which offset to use when selecting a picture for the childgallery to show.. it doesn’t have any effect when it chooses the childgallery documents itself.

      I’ll do a note about this to myself and add that parameter at somepoint.


        "He can have a lollipop any time he wants to. That's what it means to be a programmer."
        • 20349 ☆ A M B ☆
        • 453 Posts
        Thanks for the reply...


        So... is there a way to display the galleries the way I want?
          BASE - Web Design Studio
          MODX Ambassador

          Website
          • 7923
          • 4,213 Posts
          You’d have to fetch the documents with ditto or wayfinder and then in their templates, use maxigallery to get the pictures.


            "He can have a lollipop any time he wants to. That's what it means to be a programmer."
            • 20349 ☆ A M B ☆
            • 453 Posts
            Quote from: doze at Jul 21, 2010, 05:30 AM

            You’d have to fetch the documents with ditto or wayfinder and then in their templates, use maxigallery to get the pictures.

            Ummm... I must admit I never used MaxiGallery in combination with Ditto.. (or at least I don’t remember doing it)

            Can you please explain this a lil’ bit more... maybe some example? wink
              BASE - Web Design Studio
              MODX Ambassador

              Website
              • 20349 ☆ A M B ☆
              • 453 Posts
              Ok, I made a Ditto call like this:
              [!Ditto?&parents=`1042,1044,1049` &start=`1` &orderBy=`pub_date ASC` &dateSource=`pub_date` &extenders=`dateFilter` &dateFormat=`%d.%m.%Y` &paginate=`0` &display=`all` &total=`all`  &tpl=`adriaTPL` !]


              ..where my adriaTPL is
              [[MaxiGallery? &childgalleries_limit=`1` &childgalleries_ids=`1042,1044,1049` &display=`childgalleries` &childgalleries_order_by=`pub_date` &childgalleries_order_direction=`DESC` &order_by=`pos` &childgalleryTpl=`thumbs_gal_summer` &lang=`hr`]]
              [+summary+]


              ...and my thumbs_gal_summer is
              <div class="inside">
              	<a href="[+maxigallery.childurl+]">
                       <img src="[*myimage:phpthumb=`h=170&w=200&zc=1#[+maxigallery.path_to_gal+][+maxigallery.picture.filename+]#1`*]" class="thumbnail" title="[+maxigallery.strings.go_to_gallery+]" alt="[+maxigallery.strings.go_to_gallery+]" /> </a>
                  <h2>[+maxigallery.pageinfo.pagetitle:htmlent:if=`[+maxigallery.pageinfo.pagetitle:htmlent:len+]`:gt=`34`:then=`[+maxigallery.pageinfo.pagetitle:htmlent:character_limit=`34`+] `:else=`[+maxigallery.pageinfo.pagetitle:htmlent+]`+]</h2>
                  <p>[+maxigallery.pageinfo.tv.klubovi+]</p>
              </div>
              



              But with no luck... It still displays all the same galleries :/
                BASE - Web Design Studio
                MODX Ambassador

                Website