0
Welcome Guest! Login
0 items Join Now

SOLVED gantry.class.php - Why was Mootools removed?

    • pingst's Avatar
    • pingst
    • Newbie
    • Posts: 2
    • Thanks: 0

    SOLVED gantry.class.php - Why was Mootools removed?

    Posted 11 years 7 months ago
    • Hi!

      I had some problems when upgrading Gantry.
      I narrowed down the problem to gantry.class.php.
      In the init() function Mootools was forced to load before using
      JHTML::_('behavior.framework');
      .
      However in the new gantry.class.php that line is commented out.
      This makes Mootools not forced to load early, which in my case resulted in files such as /libraries/gantry/js/gantry-totop.js to be loaded before Mootools. This obviously leads to javascript errors.

      Why was that line commented out? Is there a new way/option to solve this?

      My template is Halcyon and the version of gantry.class.php that breaks my website is @version $Id: gantry.class.php 13269 2013-09-05 01:37:10Z djamil $.
    • Last Edit: 11 years 7 months ago by pingst.
    • prim's Avatar
    • prim
    • Preeminent Rocketeer
    • Posts: 17290
    • Thanks: 217

    Re: SOLVED gantry.class.php - Why was Mootools removed?

    Posted 11 years 7 months ago
  • Re: SOLVED gantry.class.php - Why was Mootools removed?

    Posted 11 years 7 months ago
    • It was removed because it should be the feature loading up MooTools if required. In fact if you look at the feature totop.php in gantry, you'll see in the init() method that there is the behavior.framework.
      You need to edit the totop.php feature file under the template and ensure it has that same JHTML::_('behavior.framework') in the init method to fix it.
    • / Djamil Legato / Lead Developer /
    • pingst's Avatar
    • pingst
    • Newbie
    • Posts: 2
    • Thanks: 0

    Re: SOLVED gantry.class.php - Why was Mootools removed?

    Posted 11 years 7 months ago
    • Djamil Legato wrote:
      It was removed because it should be the feature loading up MooTools if required. In fact if you look at the feature totop.php in gantry, you'll see in the init() method that there is the behavior.framework.
      You need to edit the totop.php feature file under the template and ensure it has that same JHTML::_('behavior.framework') in the init method to fix it.

      Makes sense. And you're correct about the feature files.

      Thanks!

Time to create page: 0.101 seconds