We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 27330
    • 884 Posts
    Hi all,
    I have a setup of Maxigallery and Milkbox, for some reason when I click to enlarge the image the first image in the galley is always open no matter what pic I click.

    my chunk in question is
    <div class="picturecontainer">
        <div class="picture">   
    <a href="[(base_url)][+maxigallery.path_to_gal+]big_[+maxigallery.picture.filename+]" rel="milkbox:gal[+maxigallery.picture.gal_id+]" title="[+maxigallery.picture.title:htmlent+]">
     <img id="maxImage" class="FrameLike"
    src="[(base_url)][+maxigallery.path_to_gal+][+maxigallery.picture.filename+]"
    alt="[+maxigallery.picture.title:htmlent+]" />
    </a>
    </div>
    <div class="picture_info">
           <h3 id="maxTitle">[+maxigallery.picture.title:htmlent+]</h3>
           <p id="maxDescr">[+maxigallery.picture.descr:htmlent+]</p>
    </div>
    </div>


    the galley can be viewed here
    http://www.cupcakesbydana.com/gallery

    can you see what I do wrong?
      • 18373 ☆ A M B ☆
      • 3,141 Posts
      I don’t know Milkbox, but for others that do it might be helpful to add the snippet calls you use.
        Mark Hamstra • Developer spending his days working on Premium Extras and a MODX Site Dashboard with the ability to remotely upgrade MODX and extras to make the MODX world a little better.

        Tweet me @mark_hamstra, check my infrequent blog at markhamstra.com, my slightly more frequent ramblings at MODX.today or see code at Github.
        • 7923
        • 4,213 Posts
        Well.. you are using javascript to change the picture via onmouseover event. In that javascript function you need to also change the link url of the bigger picture so that milkbox knows what to show. As it is now, the link url of the bigger picture stays the sames even though the image url is changed in the onmouseover function.


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