Page 1 of 1

Phoca gallery category to open in a new window

Posted: 25 Jun 2013, 01:23
by pastor
In the article I place the following plugin code:
{phocagallery view=categories|categoryid=205|imagecategoriessize=1}
{phocagallery view=categories|categoryid=202|imagecategoriessize=1}
{phocagallery view=categories|categoryid=201|imagecategoriessize=1}
{phocagallery view=categories|categoryid=201|imagecategoriessize=1}

In the article everything is OK.

The question is, when the visitor click in the article on the phoca category name or on the thumbnail, it is possible that the clicked phoca album open in a new window?

Sorry for the bad english.

Re: Phoca gallery category to open in a new window

Posted: 25 Jun 2013, 01:24
by Jan
Hi, such then needs to be customized directly in the code :-( - try to set detail window to "no popup" maybe this can fit your needs.

Jan

Re: Phoca gallery category to open in a new window

Posted: 25 Jun 2013, 10:15
by pastor
Thank you Jan for the very fast answer.

Unfortunately for us Your solution does not fit our needs. I am very satisfied with Jak Lightbox. I am repeating myself, but this is because that I have a feeling that I lost in translation.

My need is that on the page (example first page) I have some albums (thumbnail & category name) generated like in the first post. When the visitor click on the name of the album (category) on that page, in the new window open the page with all the pictures in that album (Category View, I think). In that way the visitor lists the pictures and when finished, just close the new window with opened pictures of an album and returns to the list of albums page (first page) that stays in the browser.

Because of my bad English here an example of my web page: http://svetisava.edu.rs/index.php/galer ... e/20122013

I do that page manually, and works really fine for me. But, always a but, with every album that we place on that page we must create one Menu Item that contains the List of images (Category View) of that album, place one picture and the name of the album, and then attach a link of the Menu item to the pictute and the name of the album. We have lots of picture albums and because of that every time we must do that procedure.

More efficient is the plugin code that can place in the article:
{phocagallery view=categories|categoryid=205|imagecategoriessize=1}
{phocagallery view=categories|categoryid=202|imagecategoriessize=1}
{phocagallery view=categories|categoryid=201|imagecategoriessize=1}
{phocagallery view=categories|categoryid=201|imagecategoriessize=1}

But with that we loose the appearance that every album open in a new window and a visitor when finished exploring all the pictures of the album, just close that particular album window. The page where all the albums are is still there and ready for the visitor to look at new album. The visitors in that way easier exploring the picture albums. At least I think that.

How big is the problem customizing our need directly in the code? It is to complicated?

Re: Phoca gallery category to open in a new window

Posted: 26 Jun 2013, 00:52
by Jan
Hi, I think this will be complicated, you need:

- to change the link in category view - to open in new window
- you need to e.g. set then newly opened window (e.g. popup) will have or not module postions, menus, etc (tmpl=component suffix can clear all the modules, etc.)
- you need to add some close button or link to close the window
- you need to hide the top (up) link so in the newly opened window you cannot go through all the tree

- but maybe there are needed some more customizations, but for now really no idea if yes or not and which :idea:

Jan

Re: Phoca gallery category to open in a new window

Posted: 26 Jun 2013, 11:35
by pastor
Jan, I am a Joomla user with no programming experience in this field. My question is maybe impossible, or need a hard work to programming the Phoca gallery code.

Is it possible that the plugin code have one parameter that tells the Phoca to open the Category view of an album in new window.

For example:
{phocagallery view=categories|categoryid=205|openinnewwindow=yes|imagecategoriessize=1}
or
{phocagallery view=categories|categoryid=202|openinnewwindow=no|imagecategoriessize=1}

I assume even it is possible need a hard work, I just asking. This would be a problem solver. Thank You for the hard work that You do in this forum.
Phoca is really excellent Joomla extension. I like it because of Picasa integration. We have number of teachers who can upload to School Picasa and then the web administrators link the albums to Phoca. Really great.

Re: Phoca gallery category to open in a new window

Posted: 02 Jul 2013, 22:24
by Jan
Hi, I didn't do such customization yet, so cannot give any clue advice but yes you can (or someone) add specific parameter to the plugin - to open the window or not (the xml needs to be edited to add new parameter, then the php code needs to get the value from this parameter and some if clause should then change the href attribute :idea: )
Jan