Category view menu item > Other menu items disappear
-
Insi
- Phoca Newbie

- Posts: 5
- Joined: 15 Jun 2016, 11:54
Category view menu item > Other menu items disappear
Hello, thanks for making this great component available. I’m currently developing a site (am not able to post its URL here) and have run into a problem with the PhocaGallery Component, first in version 4.2.2, and now in the update to 4.3.0. On this site, all the images are in just one category, so in the site navigation, I’m using menu item ‘Category view’, to show that one category. Of the main website navigation, about half the items are links to single pages/modules/category listings etc, and the rest are dropdown menus (= section headers, using link #), which lead to a selection of articles in that respective section. From the page showing the PhocaGallery component, clicking one of those section header menu items, and then releasing the mouse without choosing one of the items in it, results in that menu item (section header and all its linked pages) completely disappearing from the navigation area! Repeating the procedure with the other section headers results in the same thing happening. I temporarily changed the Joomla menu item to ‘Display all categories’ and then to ‘User control panel’ and the site navigation works as expected. So there’s something strange resulting from the use of the ‘Category view’ item on my website. Any suggestions gratefully accepted; thanks in advance!
- Jan
- Phoca Hero

- Posts: 49144
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Category view menu item > Other menu items disappear
Hi, can I see the site where this occurs, it is really hard to say if this problem can be somehow related to menu items options or e.g. to javascript conflict (e.g. mootools vs. bootstrap/jquery) which hides the menu items too 
Jan
Jan
If you find Phoca extensions useful, please support the project
-
Insi
- Phoca Newbie

- Posts: 5
- Joined: 15 Jun 2016, 11:54
Re: Category view menu item > Other menu items disappear
Hi Jan, thanks for your reply. I’m guessing there’s some kind of conflict somewhere. Unfortunately I can’t post the URL on a public forum. And private messaging doesn’t seem to be active on this board. Are there any other ways I can (confidentially) pass on the URL? Thanks, Paul
-
christine
- Phoca Hero

- Posts: 2938
- Joined: 28 Nov 2010, 17:20
Re: Category view menu item > Other menu items disappear
Hi Paul,
Support (Jan) see: https://www.phoca.cz/support
Try following: Phocagallery > Control Panel > Styles > disable > bootstrap.min.css.
This could be one of some reasons ... depends on template bootstrap loading (twice) etc.
Kind regards, Christine
Support (Jan) see: https://www.phoca.cz/support
Try following: Phocagallery > Control Panel > Styles > disable > bootstrap.min.css.
This could be one of some reasons ... depends on template bootstrap loading (twice) etc.
Kind regards, Christine
-
Insi
- Phoca Newbie

- Posts: 5
- Joined: 15 Jun 2016, 11:54
Re: Category view menu item > Other menu items disappear
Hi Christine, thanks for your reply. As my problem is almost certaintly related to templates/conflicts, it doesn’t look as if it’s something that Jan would be able to help with directly. The Phocagallery bootstrap.min.js was already disabled. I’d already tried experimenting with that. Turning it on messes up the site layout, and still doesn’t fix the problem with the Phoca menu. I’ve made my own site template using this starter kit: blank.vc/de/. I’ve spent hours trying to figure this out, but guess I will have to keep on trying! Thanks again, Paul
- Jan
- Phoca Hero

- Posts: 49144
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Category view menu item > Other menu items disappear
Hi, from my experiences, I know, that some menu item problems can be related to jquery/bootstrap vs. mootools problems. I have solved such kind of problem for one of my site. But without seeing it live (to get info if this is the problem I mean or different problem) it is hard to say (what exactly is wrong and what caused it
)
Jan
Jan
If you find Phoca extensions useful, please support the project
-
Insi
- Phoca Newbie

- Posts: 5
- Joined: 15 Jun 2016, 11:54
Re: Category view menu item > Other menu items disappear
Hi Jan, sorry for my late reply. What you say does of course make perfect sense; it’s just that I was hoping to avoid posting the URL in a public forum. Hopefully I can edit my post and delete the URL once you’ve seen it. Here goes: I’d appreciate it if you could take a look
[removed after viewing]
- Jan
- Phoca Hero

- Posts: 49144
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Category view menu item > Other menu items disappear
Hi, yes, I see it now, this is really something similar I have solved.
I got problem with bootstrap menu items and mootools - on one of the website, I just removed mootools. On second I added some javascript code to prevent from hiding the menu (submenu)
Try to see this code (I added it after jquery and bootstrap javascript):
But of course, on your site, other libraries can cause the problem 
I got problem with bootstrap menu items and mootools - on one of the website, I just removed mootools. On second I added some javascript code to prevent from hiding the menu (submenu)
Try to see this code (I added it after jquery and bootstrap javascript):
Code: Select all
if (typeof MooTools != 'undefined') {
var mHide = Element.prototype.hide;
Element.implement({
hide: function() {
if (this.hasClass("dropdown")) {
return this;
}
if (this.hasClass("hasTooltip")) {
return this;
}
mHide.apply(this, arguments);
}
});
}If you find Phoca extensions useful, please support the project
-
Insi
- Phoca Newbie

- Posts: 5
- Joined: 15 Jun 2016, 11:54
Re: Category view menu item > Other menu items disappear
Hi Jan, thanks for looking at that for me. I’ll see how I get on with that tomorrow
Thanks again, Paul
- Jan
- Phoca Hero

- Posts: 49144
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Category view menu item > Other menu items disappear
Ok
If you find Phoca extensions useful, please support the project