freakedout

Solved: Mootools not included on every page

Solved: Mootools not included on every page

Hi everyone,

Excellent plugin - having one big issue. The go to top link is appearing on every page of my joomla site, except for Docman (using version 1.5.8).

Specifically, if I am browsing docman categories, and the page that I am has a long list of categories, scrolling down on that page the go to top link does not appear. If I go to a docman category page where there are actual files to download, the go to top link appears as normal.

Not sure what's causing the plugin to fail on docman pages displaying only categories.

Thanks for any help given.

Antonio

Edited By: alc0905
11-07-2010 19:00:36

alc0905
useravatar
Offline
2 Posts
User info in posts
Administrator has disabled public posting

Re: Solved: Mootools not included on every page

Solved the issue.

Some extensions do not require mootools.js to be included in the header - this was the issue I was experiencing on some pages with the docman extension.

Solution: Insert

Code:

<?php JHTML::_('behavior.mootools'); ?>

immediately after

Code:

< / jdoc:include type="head" />

(Modified the jdoc statement so that it actually does not include the information in this post.)

This forces joomla to include mootools.js on every page, allowing J2Top to function on every page smile

alc0905
useravatar
Offline
2 Posts
User info in posts
Administrator has disabled public posting

Forum info

Forum Stats:
Total Topics: 293
Total Posts: 975
Total Polls: 0
Posts this week: 5

User Info:
Total Users: 18683
Newest User: alexgreencreatives@gmail.com
Members Online: 3
Guests Online: 78


Forum Legend:

 Topic
 New
 Locked
 Sticky
 Active
 New/Active
 New/Locked
 New Sticky
 Locked/Active
 Active/Sticky
 Sticky/Locked
 Sticky/Active/Locked
back to top