? ? Pending

User tests: Successful: Unsuccessful:

avatar rdeutz
rdeutz
7 Feb 2017

Summary of Changes

If you are using another framework/version as the joomla core is using, it is sometimes needed to change the head data or set them to empty. In such situations people often accessing the private property of the JDocument Object (its not really a private property it just starts with a "_" what means it is private). This PR adds a function to reset certain parts of the head data.

Testing Instructions

You can use that in your template (Hello Templates clubs :-))

Add a JFactory::getDocument()->resetHeadData('scripts');

Expected result

All Javascript loaded before should now not be loaded

Documentation Changes Required

API and release notes

avatar rdeutz rdeutz - open - 7 Feb 2017
avatar rdeutz rdeutz - change - 7 Feb 2017
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 7 Feb 2017
Category Libraries
avatar rdeutz rdeutz - change - 7 Feb 2017
Labels Added: ?
avatar coolcat-creations coolcat-creations - test_item - 23 Mar 2017 - Tested successfully
avatar coolcat-creations
coolcat-creations - comment - 23 Mar 2017

I have tested this item successfully on 2c1ed3d

Works like described.... Will it be merged?


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/13964.

avatar rdeutz
rdeutz - comment - 23 Mar 2017

yes, if it has a 2nd successfully test and someone else hit the merge button :-)

avatar Kubik-Rubik Kubik-Rubik - test_item - 23 Mar 2017 - Tested successfully
avatar Kubik-Rubik
Kubik-Rubik - comment - 23 Mar 2017

I have tested this item successfully on 2c1ed3d

Thanks!


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/13964.

avatar jeckodevelopment jeckodevelopment - change - 24 Mar 2017
Status Pending Ready to Commit
avatar jeckodevelopment
jeckodevelopment - comment - 24 Mar 2017

RTC


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/13964.

avatar zero-24
zero-24 - comment - 25 Mar 2017

Thanks @rdeutz

avatar zero-24 zero-24 - change - 25 Mar 2017
Status Ready to Commit Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2017-03-25 19:41:27
Closed_By zero-24
Labels Added: ?
avatar zero-24 zero-24 - close - 25 Mar 2017
avatar zero-24 zero-24 - merge - 25 Mar 2017

Add a Comment

Login with GitHub to post a comment