can this be done with phoca gallery?

Phoca Gallery - image gallery extension
nk111
Phoca Member
Phoca Member
Posts: 14
Joined: 05 Aug 2008, 14:11

can this be done with phoca gallery?

Post by nk111 »

Hi,

what I would need is the following:

I'd like to have a link on the page "click here for more images". If the user clicks this link a lightbox should open up where the user can click through all the images of an album.

Is this possible with phoca gallery or does anyone know an extension which can do this?

any help is appreciated!
nico
reko
Phoca Professional
Phoca Professional
Posts: 407
Joined: 29 Dec 2008, 22:06

Re: can this be done with phoca gallery?

Post by reko »

hi,
this is not an out of the box feature of phocagallery, but i'm sure it can be done with a little bit of customization work.

i could imagine taking a link from a gallery-page or the pg image module, then alle you have to do is make sure that all necessary links (for the lightbox) are loaded...
regards
/rk
nk111
Phoca Member
Phoca Member
Posts: 14
Joined: 05 Aug 2008, 14:11

Re: can this be done with phoca gallery?

Post by nk111 »

hm, I thats exactly the question. How to make the plugin add all the links BUT no thumbnails. Then I could just insert one link with text or image myself and all the images would be accessible from the lightbox.
nk111
Phoca Member
Phoca Member
Posts: 14
Joined: 05 Aug 2008, 14:11

Re: can this be done with phoca gallery?

Post by nk111 »

I finally found a possible solution myself.

What I needed was: I wanted to use the shadowbox style. The gallery plugin should create all the links of a picture category for me but should NOT display the thumbnails on the page. Instead I wanted a single link on my page like "click here for more pictured" which should open up the lightbox. This is not possible out of the box.

What I did was: I used the editor button to insert the markup for the display of a whole category in shadowbox style. Then I placed a div tag around this section which had style set to "display:none". So the generated links and thumbnails are on the page but not visible. Then I inserted a little piece of javascript which searches my special link on the page an adds an event handler for its click event. This handler function searches for gallery link tags on the page and if it finds at least one then it opens the shadowbox by simply calling Shadowbox.open(%thefirstlinkfound%);

This solved MY special problem. I would like the gallery plugin itself to have an option to NOT display any thumbnail but create all the necessary javascript code and include all needed scripts to start a lightbox or slideshow with a custom link. In case of the shadowbox this would be simple. It has an API which allows to define all the pictures in a javascript array which can then be started with a custom link. So if it is possible I would really like to implement this myself...
coquin
Phoca Newbie
Phoca Newbie
Posts: 3
Joined: 30 Nov 2009, 15:41

Re: can this be done with phoca gallery?

Post by coquin »

hallo nk111
I'm very interested in your solution, but I'm not an eagle in javascript.

could you post the code you used or something similar?

thanks
Post Reply