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?
Modules dissapears problem!
- Jan
- Phoca Hero
- Posts: 48402
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Modules dissapears problem!
Hi, can I see the page where this problem occurs, maybe there is conflict between javascript methods ???
Jan
Jan
If you find Phoca extensions useful, please support the project
-
- Phoca Member
- Posts: 11
- Joined: 11 Mar 2009, 15:48
Re: Modules dissapears problem!
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.
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.
- caro84g
- Phoca Hero
- Posts: 1369
- Joined: 11 Feb 2008, 17:52
- Location: Holland
- Contact:
Re: Modules dissapears problem!
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
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
Please ask your support questions in the forums and not via PM - I delete those PM's
Backup before you do any major change to your website (and test first)
Backup before you do any major change to your website (and test first)
-
- Phoca Member
- Posts: 11
- Joined: 11 Mar 2009, 15:48
Re: Modules dissapears problem!
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?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
- caro84g
- Phoca Hero
- Posts: 1369
- Joined: 11 Feb 2008, 17:52
- Location: Holland
- Contact:
Re: Modules dissapears problem!
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
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
Please ask your support questions in the forums and not via PM - I delete those PM's
Backup before you do any major change to your website (and test first)
Backup before you do any major change to your website (and test first)
-
- Phoca Member
- Posts: 11
- Joined: 11 Mar 2009, 15:48
Re: Modules dissapears problem!
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?
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?
- caro84g
- Phoca Hero
- Posts: 1369
- Joined: 11 Feb 2008, 17:52
- Location: Holland
- Contact:
Re: Modules dissapears problem!
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
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
Please ask your support questions in the forums and not via PM - I delete those PM's
Backup before you do any major change to your website (and test first)
Backup before you do any major change to your website (and test first)
-
- Phoca Member
- Posts: 11
- Joined: 11 Mar 2009, 15:48
Re: Modules dissapears problem!
Not actually sure what u mean. But the link from the menu item (when i created the link) is: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
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.
- caro84g
- Phoca Hero
- Posts: 1369
- Joined: 11 Feb 2008, 17:52
- Location: Holland
- Contact:
Re: Modules dissapears problem!
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
Regards, Carolien
Please ask your support questions in the forums and not via PM - I delete those PM's
Backup before you do any major change to your website (and test first)
Backup before you do any major change to your website (and test first)