Gallery Image Module - link to a menu

Phoca Gallery modules - modules for Phoca Gallery extension
babala
Phoca Member
Phoca Member
Posts: 11
Joined: 10 Mar 2010, 19:17

Gallery Image Module - link to a menu

Post by babala »

Right now if you choose image link to be a category view it points you to "mysite.com/component/phocagallery/category/". Would it be possible to set the image link to point to the existing menu item (eg. "gallery"), so the category view would look like "mysite.com/gallery/category/"?

Would be also great if it would open not simple category view, but detail view of this specific image in this category, so you could immediately navigate to other images.
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 47887
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Gallery Image Module - link to a menu

Post by Jan »

Hi, sorry, I don't understand - if you create a menu link to gallery then all links in component, module or plugin try to find this menu link and create a menu SEF link - just see the demo of the Phoca Gallery. This "component/phocagallery/category" is not correct sef link - check if menu link to Phoca Gallery was correctly created :idea:

Jan
If you find Phoca extensions useful, please support the project
babala
Phoca Member
Phoca Member
Posts: 11
Joined: 10 Mar 2010, 19:17

Re: Gallery Image Module - link to a menu

Post by babala »

The gallery menu is published and working - I don't know how else to check if it was correctly created.
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 47887
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Gallery Image Module - link to a menu

Post by Jan »

Hmm, see:
https://www.phoca.cz/documents/16-joomla ... -in-joomla

if the menu link is active, and SEF is enabled, the menu link url (and other links to the gallery) should be created by Joomla! sef, so this:

component/phocagallery/category is not right SEF link.

Do you use standard Joomla! SEF, set in Global Configuration?

Jan
If you find Phoca extensions useful, please support the project
babala
Phoca Member
Phoca Member
Posts: 11
Joined: 10 Mar 2010, 19:17

Re: Gallery Image Module - link to a menu

Post by babala »

Joomla SEF is on. You can check it out for yourself chor.uw.edu.pl/chorzysci/regulamin (module) and chor.uw.edu.pl/galeria (component)
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 47887
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Gallery Image Module - link to a menu

Post by Jan »

Hi, I see, I cannot find the menu link on the site, is the menu link to gallery e.g. in hidden menu group, etc? (I know it exists - chor.uw.edu.pl/galeria) but so no visible menu on that site? If you paste it to the menu, does it change?
If you find Phoca extensions useful, please support the project
babala
Phoca Member
Phoca Member
Posts: 11
Joined: 10 Mar 2010, 19:17

Re: Gallery Image Module - link to a menu

Post by babala »

Hey, sorry for the break. By default the gallery is in the separate menu which is published, but not displayed in any module. It's a way to get simple chor.uw.edu.pl/galeria link, while having the alias in one of the main submenus. But as I moved gallery menu to the main visible group: chor.uw.edu.pl/chorzysci/regulamin/galeria, the module published in a sidebar here:
chor.uw.edu.pl/chorzysci/regulamin
still has the weird "component" link. I think it shows, that the hidden (or rather not visible) menu is not the problem here.
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 47887
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Gallery Image Module - link to a menu

Post by Jan »

Hi, is this:
chor.uw.edu.pl/chorzysci/regulamin/galeria

menu link to categories view or to category view? The module needs to get the info from menu link to categories view.

Jan
If you find Phoca extensions useful, please support the project
babala
Phoca Member
Phoca Member
Posts: 11
Joined: 10 Mar 2010, 19:17

Re: Gallery Image Module - link to a menu

Post by babala »

That was it! I've changed gallery menu type from category to categories and now it works! Thanks!
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 47887
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Gallery Image Module - link to a menu

Post by Jan »

Ok, great to hear it.

Jan
If you find Phoca extensions useful, please support the project
Post Reply