We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 36686
    • 165 Posts
    With help from the wiki (http://wiki.modxcms.com/index.php/MaxiGallery#ThickBox_.28jQuery.29_with_MaxiGallery) I managed to get MaxiGallery to work with Thickbox (yay!).

    However, the one thing I can’t work out is to display the image title and description. In thickbox.js I tried to replace +caption+ with +maxigallery.picture.title:htmlent+ but that didn’t solve it. Any ideas?
      • 7923
      • 4,213 Posts
      Thickbox should get the image title/description from the link title attribute. The template in maxigallery wiki has all in place, so you should see the titles and descriptions in thickbox by default. You don’t have to modify thickbox.js at all.


        "He can have a lollipop any time he wants to. That's what it means to be a programmer."
        • 36686
        • 165 Posts
        The title displays fine for the thumbnail alt-tag, but when the large image opens I don’t get either the title or the description underneath the image...
          • 7923
          • 4,213 Posts
          Is the site online, can you give a link to it?


            "He can have a lollipop any time he wants to. That's what it means to be a programmer."
            • 36686
            • 165 Posts
            Doze, I’ve sent you a personal message with the login details.
              • 7923
              • 4,213 Posts
              Try changing your galleryPictureTpl to this:
              <li>
                  <a href="[(base_url)][+maxigallery.path_to_gal+][+maxigallery.picture.filename+]" class="thickbox" title="[+maxigallery.picture.title:htmlent+] - [+maxigallery.picture.descr:htmlent+]" rel="gallery">
                      <img src="[(base_url)][+maxigallery.path_to_gal+]tn_[+maxigallery.picture.filename+]" class="thumbnail" title="[+maxigallery.picture.title:htmlent+]
                      [+maxigallery.strings.click_to_zoom+]" alt="[+maxigallery.picture.title:htmlent+] [+maxigallery.strings.click_to_zoom+]" />
                  </a>
                  [+maxigallery.picture.title:isnot=``:then=`
                      <p style="width: [+maxigallery.picture_width_thumb+]px;">
                          [+maxigallery.picture.title:htmlent+]
                      </p>
                  `+]
              </li>
              


                "He can have a lollipop any time he wants to. That's what it means to be a programmer."
                • 5544
                • 8 Posts
                Doze: I noticed that you used the
                :isnot=``:then=`
                code in your response. That’s PHx, correct? Is PHx supported in MaxiGallery without me installing PHx? Or do I need to install PHx to get that to work in MaxiGallery? Thank you for your help to someone learning MODx.

                  • 36686
                  • 165 Posts
                  Yay, thanks a million Doze, it did the trick for me smiley
                    • 7923
                    • 4,213 Posts
                    Quote from: cmuluna at Feb 07, 2009, 06:35 PM

                    Doze: I noticed that you used the
                    :isnot=``:then=`
                    code in your response. That’s PHx, correct? Is PHx supported in MaxiGallery without me installing PHx? Or do I need to install PHx to get that to work in MaxiGallery? Thank you for your help to someone learning MODx.
                    If PHx is not installed as a plugin, MaxiGallery will use it’s own PHx class to render the output, so no, you don’t need to have PHx installed.


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