We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 21074
    • 4 Posts
    Puzzled over how to do this, completely new to modx. I have a site which has a UK stock list of cars - click on the thumbnail to see car description, details and gallery

    my ditto call looks like this:
    [[Ditto? &parents=`48` &extenders=`summary` &summarize=`10` &orderBy=`createdon ASC` &display=`5` &total=`5` &trunc=`1` &truncLen=`50` &tpl=`carsummary`]]


    my carsummary template is a chunk which looks like this:
    <table>
      <tr>
        <td><div class="imgleft">[!MaxiGallery? &view_gallery=`[+id+]` &limit=`1`!]</div></td>
        <td><a href="[~[+id+]~]">
          <h4>[+title+]</h4>
          </a>
          <p><strong>[+description+]</strong></p>
          <p>[+introtext+] <a href="[~[+id+]~]"> More >></a></p></td>
      </tr>
    </table>
    <br style="clear:both" />
    


    and on the car page there’s a chunk like this
    [!MaxiGallery? &display=`embedded` &embedtype=`slimbox` &pics_per_row=`3` &max_thumb_size=`110` &max_pic_size=`0`!]


    Works fine but when I’ve uploaded the images for each car the manage button on the car page stops working, it appears but you cannot click it. Any ideas what I’m doing wrong?
    tx in advance

      • 33337
      • 3,975 Posts
      ... it appears but you cannot click it ...
      Are you sure its not css z-index issue. Like, other page elements appearing before the button thus preventing mouse click. Try to navigate with keyboard.

      Other than this, cant think of any issue since it works for first upload.
        Zaigham R - MODX Professional | Skype | Email | Twitter

        Digging the interwebs for #MODX gems and bringing it to you. modx.link
        • 21074
        • 4 Posts
        Nope, that didn’t work. It’s not a z ordering issue I think. Also with
        [!MaxiGallery? &view_gallery=`[+id+]` &limit=`1`!]

        within the car summary template gives a strange gallery when you click on the thumbnail - goes to the child page and shows the images fullsize with a ’previous’ and ’next’ link which you can’t click on either huh
        I would like the stock list thumbnail simply to link to the page with the childgallery..

        edit: I have replaced the maxigallery call in the car summary template with
        [!MaxiGallery? &gal_query_ids=`[+id+]` &limit=`1` &disable_js_libs=`1`!]

        but still exhibiting the same behavious, it’s annoying because I had this working before, it’s something very simple i think.
          • 21074
          • 4 Posts
          thanks though Zi, you got me thinking and it was a sorting issue with one div overlaying another, though z-index didn’t seem to help. I restructured the css and template and the manage button works fine now - however I still have the problem of the car summary thumbnail not linking to the child document...
            • 21074
            • 4 Posts
            ahaa!!!
            I fixed it (read the faqs doh), the manage button works and the thumbnail links to the page with the childgallery
            [!MaxiGallery? &display=`childgalleries` &childgalleries_ids=`[+id+]` &disable_js_libs=`1`!]