Jump to:

7939 Posts in 1472 Topics by 944 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: 239 Views
  • kandinsky
    Avatar
    Community Member
    2 Posts

    Include large Image directly in ImageGalleryPage Link to this post

    Hello,

    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,
    Kandinsky

    Visualization of the use case:

    239 Views
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.