We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 7527
    • 437 Posts
    Maxigallery is auto assigning values to my 'rel' and title'. On my view source it appears as :

    <img src="/assets/galleries/220/tn_anas_platyrhynchos_-_ducklings_34_.jpg" class="thumbnail" title="  » Click to zoom ->" alt="  » Click to zoom ->" />


    This is causing me to have too many keywords of 'click, zoom, alt and >`

    I want to replace the title and alt tags which are currently '» Click to zoom ->'. How can I achieve this?
      www.PawsForWildlife.co.uk
      www.Borntobrick.co.uk
      • 7527
      • 437 Posts
      Has anyone had any luck with this , or had the same issues?
        www.PawsForWildlife.co.uk
        www.Borntobrick.co.uk
        • 7527
        • 437 Posts

        In line 50 of the file
        \assets\snippets\maxigallery\templates\gallerypicturetpl.html
        you have



        <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+]" />



        where the placeholder [+maxigallery.strings.click_to_zoom+] takes its value from a language file.



        Find this language file and edit the string in this entry:

        $strings['click_to_zoom']=" » Click to zoom ->";

        Thank you to Helmut for showing me where to look. No matter what I use instead of 'click to zoom' it will be a generic term that will be used frequently on pages with a lot of Maxigallery images. Is there any way of assigning maybe the image description or title to it?

        Thank you
          www.PawsForWildlife.co.uk
          www.Borntobrick.co.uk
          • 22427
          • 793 Posts
          Try to replace the placeholder [+maxigallery.strings.click_to_zoom+]
          by [+maxigallery.picture.descr+] or [+maxigallery.picture.title+].

          Have a look here: http://wiki.modxcms.com/index.php/MaxiGallery

          Edit: Corrected typo. [ed. note: ottogal last edited this post 10 years, 11 months ago.]