We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 6531
    • 154 Posts
    I wanted a gallery of thumbnails where each one links to a page on my site, not to the bigger image.

    So I added this in [tt]gallerypicturetpl.html[/tt]:

    [+maxigallery.embedtype:is=`links`:then=` 
    
    	<a href="[~[+maxigallery.picture.descr+]~]">
    
    `+]


    Then added this to the call:
    [tt]&display=`embedded` &embedtype=`links`[/tt]

    Then put in the document ID for the page I wanted to link to in the ’description’ of the picture.
    For example, if I wanted an image to link to my home page, I would just use ’1’ as the description for that image (without the quotes.)

    It works!

    Maybe someone else will need this type of gallery.
      • 17418
      • 17 Posts
      Nice one danzg!!!,
      I’ve just discovered
      modx about a week ago
      and from your comments. Gallery
      of galleries or links to galleries etc
      is the main thing I was looking for in a cms.

      Thanks

        ...Start slow then fade
        • 12121
        • 22 Posts
        This is a great extra piece of code. I want to have a hyperlink in my description. How would I go about that?
          • 7923
          • 4,213 Posts
          Simply add the html to the picture description field.

          If you also want to display the html in other maxigallery views, you need to do custom templates with the default contents and remove the :htmlent PHx modifier from all maxigallery.picture.descr placeholders, because that PHx modifier converts all html chars to html entities.


            "He can have a lollipop any time he wants to. That's what it means to be a programmer."
            • 2603
            • 104 Posts
            Quote from: danzg at Mar 05, 2008, 10:05 AM

            if I wanted an image to link to my home page, I would just use ’1’ as the description for that image (without the quotes.)

            How can I do if I want to use external link (to another site) ?
              Getting higher! | www.djabuzz.com
              • 20413
              • 2,877 Posts
              I would think:
              instead of <a href="[~[+maxigallery.picture.descr+]~]">
              do this: <a href="[+maxigallery.picture.descr+]"> and type in the url
              if you use weblinks they have ids.
                @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
                • 2603
                • 104 Posts
                Quote from: mrhaw at Feb 19, 2009, 03:31 PM

                I would think:
                instead of <a href="[~[+maxigallery.picture.descr+]~]">
                do this: <a href="[+maxigallery.picture.descr+]"> and type in the url
                if you use weblinks they have ids.

                Thank you! smiley
                You’re completely right!
                I’ve just also tried this.
                Works! smiley
                  Getting higher! | www.djabuzz.com
                  • 2603
                  • 104 Posts
                  Its strange.

                  When I use

                  [!MaxiGallery? &id=`radioslideshow` &display=`embedded` &embedtype=`links` &smoothgallery_width=`748` &smoothgallery_height=`228` &max_pic_size=`748` &pic_use_watermark=`1` &pic_watermark_valign=`bottom` &pic_watermark_img=`assets/galleries/radio.png` &pic_watermark_type=`image` &pic_use_imagemask=`1` &pic_mask_img=`assets/snippets/maxigallery/imagemask/mask2.png` &pic_mask_bgcolor=`141414` &embedtype=`smoothgallery` &smoothgallery_timed=`true` &smoothgallery_embedLinks=`true` &smoothgallery_showArrows=`false` &smoothgallery_showCarousel=`false` &smoothgallery_showInfopane=`false` &smoothgallery_delay=`5000`!]


                  then whe I click to the picture, it takes me not to my link (http://www.mysite.com/index.php?id=73), but to http://www.mysite.com/index.php?id=84&pic=228&from_id=7

                  How can I use my own link with this call (slideshow)? Thank you!
                    Getting higher! | www.djabuzz.com
                    • 7923
                    • 4,213 Posts
                    First, there isn’t &id parameter in MaxiGallery. You can see the available parameters in maxigallery wiki page.

                    Then.. Are you sure that that is the call you are running on the page? Redirecting from picture links should only happen if &picture_target parameter is used.

                    Do you have sample page online that I could check?


                      "He can have a lollipop any time he wants to. That's what it means to be a programmer."
                      • 2603
                      • 104 Posts
                      Quote from: doze at Mar 05, 2009, 01:11 AM

                      Do you have sample page online that I could check?

                      Yes, sure: http://www.alex-pro.net/AH/index.php?id=7

                      Quote from: doze at Mar 05, 2009, 01:11 AM

                      Then.. Are you sure that that is the call you are running on the page? Redirecting from picture links should only happen if &picture_target parameter is used.

                      What do you mean? I use this gallery from another call (from template of another page):
                      [!MaxiGallery? &gal_query_ids=`84` &disable_js_libs=`0` &display=`embedded` &embedtype=`links` &smoothgallery_width=`748` &smoothgallery_height=`228` &max_pic_size=`748` &pic_use_watermark=`1` &pic_watermark_valign=`bottom` &pic_watermark_img=`assets/galleries/radio.png` &pic_watermark_type=`image` &pic_use_imagemask=`1` &pic_mask_img=`assets/snippets/maxigallery/imagemask/mask2.png` &pic_mask_bgcolor=`141414` &embedtype=`smoothgallery` &smoothgallery_timed=`true` &smoothgallery_embedLinks=`true` &smoothgallery_showArrows=`false` &smoothgallery_showCarousel=`false` &smoothgallery_showInfopane=`false` &smoothgallery_delay=`5000`!]
                        Getting higher! | www.djabuzz.com