We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 3085
    • 3 Posts
    First off, I’m very new to MODx (but worked a lot with Magento and Wordpress in the past).

    I’ve built a very simple MODx site here: www.tbjoinery.com

    My question is this - on the ’gazebo’ page you can click an image thumbnail on the right and it will open in a jQuery lightbox. Visually works as I want it.

    However, I have had to code all the image/lightbox links by hand in the HTML editor window. Is there a way for non-HTML proficient users to add these images/links?

    For each image I have had to add a link with ’rel=lightbox-myGroup’ in it to make it work, like this:

    <a rel="lightbox-myGroup" href="images/carouselFULL1.jpg"><img src="images/logo_tb.gif" alt="logo_tb" width="119" height="157" /></a>


    But I want to avoid everyday users the hassle of having to add the code like that. I want them to be able to choose through the manager the image they want as the thumbnail, specify the image to open from the file manager (e.g. the link) for the lightbox image and it to work.

    Trouble is, at the moment, doing it with the image browser produces link code like this:

    <a title="title here." href="assets/files/fullsize/DSC_0001.jpg"><img src="assets/images/thumbs/DSC_0001.jpg" border="0" alt="logo_tb" width="140" height="93" /></a>
    


    It’s missing the
    rel="lightbox-myGroup"
    part. I can’t see any way of adding the
    rel="lightbox-myGroup"
    part to the link - anyone know how to do that without dipping into the HTML editor window?
      • 2912
      • 315 Posts
      Have you seen Directresize or MaxiGallery?

      Directresize deals with single images whereas MaxiGallery handles multiple images on one page and is configurable upto Wahzoo.
        BBloke
        • 1892
        • 82 Posts
        Quote from: BBloke at May 20, 2010, 10:08 AM

        Have you seen Directresize or MaxiGallery?

        Directresize deals with single images whereas MaxiGallery handles multiple images on one page and is configurable upto Wahzoo.
        I used Directresize on my site, www.cherryclan.com, just add the full size image into the content editor, on the image properties just type in the size for the thumbnail, eg width 250px, height 250px. The image will be shrunk for the main page and then the image is linked to the full size image via lightbox.

        I actually prefer Highslide rather than lightbox. With Highslide if you have a small screen when you first click on the image it will open in a new box zoomed to the visible screen area. This gives the user a larger image without having to scroll around. If the image is still not 1:1 view then in the bottom right hand corner there is a small compass icon, clicking on this will expand the image to 1:1 scale.

        Regards

        Adrian
          • 3085
          • 3 Posts
          Hi both, that looks (and sounds) like it could be just the job. I’ll take a look. Thanks for the pointers.