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
    Ok, here is what I’m trying to do...
    I have a folder with galleries in it like so:

    ALL gal’s
    |club name 1
    |gallery 1
    |gallery 2
    |etc...
    |club name 2
    |gallery 1
    |gallery 2
    |etc...
    |club name 3
    |gallery 1
    |gallery 2
    |etc...

    Every document for gallery (gallery 1, 2, 3...) has a TV with the name of the club where pictures are taken.



    Now for the problem...

    When I put latest pictures taken... It won’t display the proper TV, thus the first TV that is set on parent folders of the galleries.

    My snippet call for the "latest pictures" (parent folder "ALL gal’s" is ID=47)
    [!MaxiGallery? &childgalleries_ids=`47` &display=`childgalleries` &childgalleries_limit=`8` &childgalleries_order_by=`pub_date` &childgalleries_order_direction=`DESC` &order_by=`pos` &childgalleryTpl=`thumbs_naslovna` &lang=`hr`!]


    and &childgalleryTpl=`thumbs_naslovna` is:
    <li>
    <div class="thumb_slike">
    	<a href="[+maxigallery.childurl+]">
             <img src="[*myimage:phpthumb=`h=100&w=130&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>
        <p class="opis1">[+maxigallery.pageinfo.pagetitle:htmlent:if=`[+maxigallery.pageinfo.pagetitle:htmlent:len+]`:gt=`40`:then=`[+maxigallery.pageinfo.pagetitle:htmlent:character_limit=`40`+] `:else=`[+maxigallery.pageinfo.pagetitle:htmlent+]`+]</p>
    </div>
    </li>



    Tried putting name of the club with calling the TV like [*clubs*] in te template, but it outputs one same TV for all the galleries :/

    example:
    ....<p class="opis1">[+maxigallery.pageinfo.pagetitle:htmlent:if=`[+maxigallery.pageinfo.pagetitle:htmlent:len+]`:gt=`40`:then=`[+maxigallery.pageinfo.pagetitle:htmlent:character_limit=`40`+] `:else=`[+maxigallery.pageinfo.pagetitle:htmlent+]`+]</p>
    <p class="opis2">[*clubs*]</p>
    </div>
    </li>
    



    Any smart idea? smiley huh
      BASE - Web Design Studio
      MODX Ambassador

      Website
      • 7923
      • 4,213 Posts
      Yes, ofcourse it will print out the same tv content for each gallery, because you are printing the tv content from the document where that snippet call is..

      Instead of using [*clubs*] use [+maxigallery.pageinfo.tv.clubs+], ALWAYS check MaxiGallery wiki page for available parameters and placeholders.


        "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 doze!

        It worked like a charm.


        I guess I misslooked that info undecided Shame on me wink
          BASE - Web Design Studio
          MODX Ambassador

          Website