Page 1 of 1

Menu problems

Posted: 19 Apr 2015, 09:15
by eebee
Hi Jan!

I found a little problem on my site with PhocaDownload. When I just enter the file archive, it lloks just fine, but when I enter one of the categories or files there, all of my subobjects in the top menu displays.

Root of archive:
http://sff2.governor.se/index.php/fakta ... umentarkiv

Category:
http://sff2.governor.se/index.php/fakta ... kument2014

Can it be something related to the component or is it only in the template? We're stuck finding why..

/ Emil

Re: Menu problems

Posted: 21 Apr 2015, 23:58
by Jan
Hi, I see, hard to say, but maybe yes. I think, testing it with another template does not make any sense, as another template does not have any such menu.

In Firebug, I have disables all the styles loaded by Phoca Download, so there is no conflict as the site is the same after deactivation of all three Phoca Download CSS files.

But I see some javascript errors (check the javascript console in firebug, e.g.) so this can be the problem.

What happen when you disable the preview button in Phoca Download?

Jan

Re: Menu problems

Posted: 22 Apr 2015, 15:03
by eebee
Hi!

Sorry for the late reply..
I had the preview disabled already. It didn't matter.. I'm a little desperate here, and I cannot figure this out. Debugging javascript ani't my speciality.. ;)

Re: Menu problems

Posted: 23 Apr 2015, 00:18
by Jan
Can you disable the "detail" too?

Re: Menu problems

Posted: 23 Apr 2015, 08:36
by eebee
Hi!
Turned off just about everything, still nothing.
It's so strange, I've only got this on these pages under phoca download, not in the top page and not in any other components or pages.
First error I've got is 'module' is undefined (bootstrap-transition). I've really got no idea what to do with that. It also looked like squeezebox wasn't defined.

Re: Menu problems

Posted: 26 Apr 2015, 22:46
by Jan
There are the following javascript errors on the site:

ReferenceError: Hash is not defined
http://sff2.governor.se/media/system/js/modal.js
Line 7

ReferenceError: module is not defined
http://sff2.governor.se/templates/webbr ... hp?b=1&v=1
Line 193

TypeError: SqueezeBox is undefined
http://sff2.governor.se/index.php/fakta ... kument2014
Line 29

Seems like the modal is somehow in conflict with the template.

Try to test, open this file:
components\com_phocadownload\views\category\view.html.php

line cca 124:

FROM:

Code: Select all

JHTML::_('behavior.modal', 'a.pd-modal-button');
TO:

Code: Select all

//JHTML::_('behavior.modal', 'a.pd-modal-button');
Jan

Re: Menu problems

Posted: 27 Apr 2015, 09:12
by eebee
Hi!

That did remove the menu problem. Can it mess up something else to remove that line?

Re: Menu problems

Posted: 27 Apr 2015, 23:51
by Jan
Hi, in fact, you need to discover it :-) The modal is used when you use e.g. file view in modal box. If not then I think, it is not needed.

Jan