Jump to:

7940 Posts in 1543 Topics by 946 members

DataObjectManager Module

SilverStripe Forums » DataObjectManager Module » Include large Image directly in ImageGalleryPage

Discuss the DataObjectManager module, and the related ImageGallery module.

Moderators: martimiz, UncleCheese, Sean, biapar, Willr, Ingo, swaiba, simon_w

Page: 1
Go to End
Author Topic: 281 Views
  • kandinsky
    Community Member
    2 Posts

    Include large Image directly in ImageGalleryPage Link to this post


    I got stuck in a little problem and hope you can give me some hints so I can figure the solution out.
    Basically I want to use the gallery frontend without the featured javascript popups. Instead, a click on a thumbnail should load the large version of the image directly in the actual page. I don't care, whether this requires a full reload of the page or some ajax-implementation.
    Some things I figured out: ImageGalleryPage_album.ss includes GalleryUI_layout.ss. $GalleryItem somehow includes Lightbox_item.ss. I don't know where the variable $ViewLink is built, which I guess is crucial to my solution. I guess I then will have to copy some code from the lightbox.js and make it available via ImageGalleryPage_album.ss. href="$ViewLink", which contains the ID of the Image, will then update the page.

    To be honest, I find programming quite difficult if not practised continuously.

    Best regards and thanks,

    Visualization of the use case:

Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.