Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

DataObjectManager Module /

Discuss the DataObjectManager module, and the related ImageGallery module.

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

Include large Image directly in ImageGalleryPage


Go to End


756 Views

Avatar
kandinsky

Community Member, 2 Posts

20 February 2012 at 10:07am

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: