Page 1 of 2
Modules dissapears problem!
Posted: 11 Mar 2009, 16:00
by frx2000
I have a top menu and an item called "Misc". When i click that menu item a submenu appear on the left containing articles in a special category.
In one of the articles i have this code:
{phocagallery view=categories|categoryid=2}
So far so good. But clicking so i get inside that image category will make my submenu dissapear. My submenu is a module that will display ONLY on my "Misc" page. But clicking on a phoca gallery page will make my submenu dissapear since it seems that it is impossible to connect phoca gallery to a page when using the plugin...and thus creating a "what page am i on" problem. All other modules displayed on all pages will still show. But not the modules that will display on ONLY my misc page.
Is there a way to solve this irritating problem using the plugin?
Re: Modules dissapears problem!
Posted: 11 Mar 2009, 23:35
by Jan
Hi, can I see the page where this problem occurs, maybe there is conflict between javascript methods ???
Jan
Re: Modules dissapears problem!
Posted: 12 Mar 2009, 05:44
by frx2000
Hi Jan!
Sorry, it´s a local installation so i can´t show you the problem. But i can try to descibe it better. And it isn´t just this installation of Phoca that does that...i have seen it so many times before.
Build a mainmenu that will consist of a couple of links...connect them with articles (Article Layout). Then add a module (i have used "Custom HTML"...but i don´t think it mathers wich module). Then have it dispalyed on the left side (it is a 2 column layout...left is for modules, right is for content) of one of the pages for e.g. it will only be displayed on the mainmenu page called "Products".
So "Products" is a link in the mainmenu with an "Article Layout" connected to an article called "prodarticle". In that "prodarticle" add this code:
{phocagallery view=categories}
So know when you click the "Products" in the mainmenu the article "prodarticle" is loaded and has phoca gallery inside it. On the left side the previously created Custom HTML module is also shown (since we choose to load it ONLY in the "Products" page.
Now, clicking on the gallery cateogries to go inside them and view the gallaries will reload the page and the module is gone.
That is the problem.
Re: Modules dissapears problem!
Posted: 12 Mar 2009, 10:10
by caro84g
Hi,
when you click on the galleries you go to a different page. The page is probably made by a menu item. If this isn't the case, you could create a hidden menu item (create a new menu - then a menu item in this menu). First you can check if this menu is loaded when you click the link in the article. If so, then you could assign your custom module to this menu item too.
Regards, Carolien
Re: Modules dissapears problem!
Posted: 12 Mar 2009, 13:28
by frx2000
caro84g wrote:Hi,
when you click on the galleries you go to a different page. The page is probably made by a menu item. If this isn't the case, you could create a hidden menu item (create a new menu - then a menu item in this menu). First you can check if this menu is loaded when you click the link in the article. If so, then you could assign your custom module to this menu item too.
Regards, Carolien
Yes, i understand that i go to a different page. But my gallery is loaded with the plugin...and not by using the menu. But i can´t understand your solution to this problem? Create a hidden menu?
Re: Modules dissapears problem!
Posted: 12 Mar 2009, 14:01
by caro84g
Yes, create a hidden menu (or invisible menu)
If you create a new menu (via menus > menu manager), also a new menu module will be created. This module is unpublished, so it is not visible on your website. (you can check your module manager if there is new unpublished menu module - it has the same name as your menu)
You can add menu items to this 'invisible menu'. If you publish the menu item, the URL exists, and you can link to it, but you won't see it on any page.
Usually the Phoca Gallery plugin searches for an existing and published menu item. If it is available it displays that menu item.
I hope it is more clear now.
Regards, Carolien
Re: Modules dissapears problem!
Posted: 12 Mar 2009, 16:15
by frx2000
I couldn´t get it to work. What am i doing wrong?
I created a new menu called "hidden". Then i make one menu item called "gallery" and make it a "Phoca Gallery Category Layout". The link to that page is:
index.php?option=com_phocagallery&view=category&id=2
Then created a "Custom HTML" module (mod_custom). And i publish it and select it to display on the "hidden/gallery" page.
But my module doesn´t show up. What am i doing wrong?
EDITED....hey i got it to work! I had the wrong link. Enabling the hidden menu and clicking on the link got me the correct link. So i could now in the main menu just make a menu item and select "External link" and then enter the correct link to the gallery...Perfect...only problem now...how can i do this with the plugin?
Re: Modules dissapears problem!
Posted: 12 Mar 2009, 16:31
by caro84g
Hi,
could you check if the gallery takes the URL from the hidden menu item?
If not, does it take a link from another menu item?
Regards, Carolien
Re: Modules dissapears problem!
Posted: 12 Mar 2009, 17:01
by frx2000
caro84g wrote:Hi,
could you check if the gallery takes the URL from the hidden menu item?
If not, does it take a link from another menu item?
Regards, Carolien
Not actually sure what u mean. But the link from the menu item (when i created the link) is:
index.php?option=com_phocagallery&view=category&id=2 (does not load any modules)
And the link from the hidden module menu is:
index.php?option=com_phocagallery&view=category&id=2&Itemid=20 (Works perfect).
The problem now is that i need the last one to load in the plugin since i have the gallary in the article and not in a menu item.
Re: Modules dissapears problem!
Posted: 12 Mar 2009, 19:17
by caro84g
Hi, what happens if you change the menu type of your menu item to 'phoca gallery category list layout'? Does it work then?
Regards, Carolien