Home / Forums / DynamiX Support / Several images for one post using the lightbox

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts

  • Sophie Coudray
    Participant

    I am trying to associate more than one image to a post. I didn’t want to use a gallery per post but a simple lightbox effect.

     

    Can I control the content of the lightbox for one post? if so how do i associate images to this post (without them falling flat on the page)?

     

    If this is not possible with a light box what is your recommended way of associating several images to one post?

     

    Thanks.

    Andy
    Andy
    Keymaster

    Hi Sophie,

     

    This is possible but it will require a bit of HTML code. e.g. (note the style=”display:none” for the images you don’t want to display and each have to have rel=”prettyPhoto[galleryName]” to be grouped. )

     

    <a href="image1.jpg" rel="prettyPhoto[galleryName]" title="Image description"><img src="image1_thumb.jpg"></a>

     

    <a style="display:none" href="image2.jpg" rel="prettyPhoto[galleryName]" title="Image description"><img src="image2_thumb.jpg"></a><a style="display:none" href="image2.jpg" rel="prettyPhoto[galleryName]" title="Image description"><img src="image2_thumb.jpg"></a><a style="display:none" href="image2.jpg" rel="prettyPhoto[galleryName]" title="Image description"><img src="image2_thumb.jpg"></a>

     

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.