We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 17717
    • 433 Posts
    Hi all,

    I was just wondering if it is possible to have the link associated with the image link through to a separate page?

    Thanks
    Lee
      http://www.blend.uk.com | Web Design by Blend
      • 7923
      • 4,213 Posts
      Umm... what? laugh

      What’s "the link" and "the image link" and what do you mean through to a separate page?

      But, I’m pretty sure that the answer is, yes, with a custom template.



        "He can have a lollipop any time he wants to. That's what it means to be a programmer."
        • 17717
        • 433 Posts
        I may have got this wrong, but with smoothgallery, you specify a link in the code to which the image can link through to, with Maxigallery, the hyperlink on the image links through to the full size image, so, is it possible when uploading an image, to specify a url to which the image link will link through to?

        Thanks
        Lee
          http://www.blend.uk.com | Web Design by Blend
          • 7923
          • 4,213 Posts
          Ok, It would of helped to mention that you were talking about smoothgallery.. wink

          It’s not possible to assign any extra links when using smoothgallery comparing to other display types. Until I code support for custom fields in picture management, there will be just title and description data for each picture. You can use one of those fields to specify the url if you can and then in a custom template (galleryPictureTpl), feed that url to smoothgallery, like so:

          	<div class="imageElement">
          	<h3> </h3>
          	<p>[+maxigallery.picture.descr:htmlent+]</p>
          	<a href="[+maxigallery.picture.title+]" title="Click to open page" class="open"></a>
          	<img src="[(base_url)][+maxigallery.path_to_gal+][+maxigallery.picture.filename+]" class="full" />
          	<img src="[(base_url)][+maxigallery.path_to_gal+]tn_[+maxigallery.picture.filename+]" class="thumbnail" />
          	</div>
          


          That would take the url from the picture title field and display just the picture description in smoothgallery infobox.


            "He can have a lollipop any time he wants to. That's what it means to be a programmer."
            • 17717
            • 433 Posts
            Thanks for that, sorry mate, should have mentioned it was smoothgallery, forget how flexible MaxiGallery is, and how the type of output has an effect on how you mod it.

            Thanks
            Lee
              http://www.blend.uk.com | Web Design by Blend