Skip to main content
Post Closed as "Duplicate" by ContextSwitch, Nagarjun, Rene Korss, GDP, TryHarder
added 33 characters in body; edited title
Source Link

Stop Joomla! 3.4.1 from including scripts in custom templatecomponent pages

I'm trying to prevent Joomla! 3.4.1 from loading certain default scripts in the front-end. Prior to 3.4 template when a custom component is displayed.1, it was possible to stop scripts from loading by adding code like the following to I am excluding the top ofscripts in the template index.php file as follows:

unset($this->_scripts[JURI::root(true).'/media/jui/js/bootstrap.min.js']);
unset($this->_scripts[JURI::root(true).'/media/jui/js/jquery.min.js']);
unset($this->_scripts[JURI::root(true).'/media/jui/js/jquery-noconflict.js']);

As of Joomla! 3.4.1, this no longer works. Printing the contents of the $this->scripts array to the screen shows that it is empty on views generated by the component, but it has values and works as expected on all default Joomla! pages.

How can you stop scripts from loading within the templatecustom component screens in the newest version of Joomla! 3.4.1?

Stop Joomla! 3.4.1 from including scripts in custom template

I'm trying to prevent Joomla! 3.4.1 from loading certain default scripts in the front-end. Prior to 3.4.1, it was possible to stop scripts from loading by adding code like the following to the top of the template index.php file:

unset($this->_scripts[JURI::root(true).'/media/jui/js/bootstrap.min.js']);
unset($this->_scripts[JURI::root(true).'/media/jui/js/jquery.min.js']);
unset($this->_scripts[JURI::root(true).'/media/jui/js/jquery-noconflict.js']);

As of Joomla! 3.4.1, this no longer works. Printing the contents of the $this->scripts array to the screen shows that it is empty.

How can you stop scripts from loading within the template in the newest version of Joomla!?

Stop Joomla! 3.4.1 from including scripts in custom component pages

I'm trying to prevent Joomla! 3.4.1 from loading certain default scripts in the front-end template when a custom component is displayed. I am excluding the scripts in the template index.php file as follows:

unset($this->_scripts[JURI::root(true).'/media/jui/js/bootstrap.min.js']);
unset($this->_scripts[JURI::root(true).'/media/jui/js/jquery.min.js']);
unset($this->_scripts[JURI::root(true).'/media/jui/js/jquery-noconflict.js']);

Printing the contents of the $this->scripts array to the screen shows that it is empty on views generated by the component, but it has values and works as expected on all default Joomla! pages.

How can you stop scripts from loading within custom component screens in Joomla! 3.4.1?

added 4 characters in body
Source Link

I'm trying to prevent Joomla! 3.4.1 from loading certain default scripts in the front-end. Prior to 3.4.1, it was possible to stop scripts from loading by adding code like the following to the top of the template index.php file:

unset($this->_scripts[JURI::root(true).'/media/jui/js/bootstrap.min.js']);
unset($this->_scripts[JURI::root(true).'/media/jui/js/jquery.min.js']);
unset($this->_scripts[JURI::root(true).'/media/jui/js/jquery-noconflict.js']);

As of Joomla! 3.4.1, this no longer works.As of Joomla! 3.4.1, this no longer works. Printing the contents of the $this->scripts array to the screen shows that it is empty.

How can you stop scripts from loading within the template in the newest version of Joomla!?

I'm trying to prevent Joomla! 3.4.1 from loading certain default scripts in the front-end. Prior to 3.4.1, it was possible to stop scripts from loading by adding code like the following to the top of the template index.php file:

unset($this->_scripts[JURI::root(true).'/media/jui/js/bootstrap.min.js']);
unset($this->_scripts[JURI::root(true).'/media/jui/js/jquery.min.js']);
unset($this->_scripts[JURI::root(true).'/media/jui/js/jquery-noconflict.js']);

As of Joomla! 3.4.1, this no longer works. Printing the contents of the $this->scripts array to the screen shows that it is empty.

How can you stop scripts from loading within the template in the newest version of Joomla!?

I'm trying to prevent Joomla! 3.4.1 from loading certain default scripts in the front-end. Prior to 3.4.1, it was possible to stop scripts from loading by adding code like the following to the top of the template index.php file:

unset($this->_scripts[JURI::root(true).'/media/jui/js/bootstrap.min.js']);
unset($this->_scripts[JURI::root(true).'/media/jui/js/jquery.min.js']);
unset($this->_scripts[JURI::root(true).'/media/jui/js/jquery-noconflict.js']);

As of Joomla! 3.4.1, this no longer works. Printing the contents of the $this->scripts array to the screen shows that it is empty.

How can you stop scripts from loading within the template in the newest version of Joomla!?

Source Link

Stop Joomla! 3.4.1 from including scripts in custom template

I'm trying to prevent Joomla! 3.4.1 from loading certain default scripts in the front-end. Prior to 3.4.1, it was possible to stop scripts from loading by adding code like the following to the top of the template index.php file:

unset($this->_scripts[JURI::root(true).'/media/jui/js/bootstrap.min.js']);
unset($this->_scripts[JURI::root(true).'/media/jui/js/jquery.min.js']);
unset($this->_scripts[JURI::root(true).'/media/jui/js/jquery-noconflict.js']);

As of Joomla! 3.4.1, this no longer works. Printing the contents of the $this->scripts array to the screen shows that it is empty.

How can you stop scripts from loading within the template in the newest version of Joomla!?