It fixed when i create plugin and put it on event onBeforeRender().
Pada Senin, 20 Agustus 2012 10:20:47 UTC+7, Viktor Iwan menulis:
> Hi Chris, it did works ! but only when i remove a single array, if i did
> this:
> $doc = JFactory::getDocument();
> $headData=$doc->getHeadData();
> unset($headData['styleSheets'][JURI::base(true).'/libraries/cck/rendering/a ssets/css/content.css']);
> unset($headData['styleSheets'][JURI::base(true).'/libraries/cck/rendering/a ssets/css/cck.css']);
> unset($headData['scripts'][JURI::base(true).'/media/cck/scripts/jquery/js/j query-more.js']);
> $doc->setHeadData( $headData );
> it won't work... any idea ?
> Pada Minggu, 19 Agustus 2012 14:31:10 UTC+7, Chris Davenport menulis:
>> Did you do a $doc->setHeadData( $headData ); afterwards?
>> Chris.
>> On 19 August 2012 06:28, Viktor Iwan <vic...@doxadigital.com> wrote:
>>> Hello all, i try to remove some script/style in head document from a
>>> module/component..
>>> i'm using this code:
>>> $doc = JFactory::getDocument();
>>> $headData=$doc->getHeadData();
>>> unset($headData['styleSheets'][JURI::base(true).'/libraries/cck/rendering/a ssets/css/content.css']);
>>> when i trace, the array unset successfully, but the style still echo in
>>> the document ...
>>> any idea how to make it work ?
>>> --
>>> You received this message because you are subscribed to the Google
>>> Groups "Joomla! General Development" group.
>>> To view this discussion on the web, visit
>>> https://groups.google.com/d/msg/joomla-dev-general/-/v_UkAYN3ALIJ.
>>> To post to this group, send an email to joomla-de...@googlegroups.com.
>>> To unsubscribe from this group, send email to
>>> joomla-dev-general+unsubscribe@googlegroups.com.
>>> For more options, visit this group at
>>> http://groups.google.com/group/joomla-dev-general?hl=en-GB.
>> --
>> Chris Davenport
>> Joomla Production Leadership Team
Pada Senin, 20 Agustus 2012 10:20:47 UTC+7, Viktor Iwan menulis:
> Hi Chris, it did works ! but only when i remove a single array, if i did
> this:
> $doc = JFactory::getDocument();
> $headData=$doc->getHeadData();
> unset($headData['styleSheets'][JURI::base(true).'/libraries/cck/rendering/a ssets/css/content.css']);
> unset($headData['styleSheets'][JURI::base(true).'/libraries/cck/rendering/a ssets/css/cck.css']);
> unset($headData['scripts'][JURI::base(true).'/media/cck/scripts/jquery/js/j query-more.js']);
> $doc->setHeadData( $headData );
> it won't work... any idea ?
> Pada Minggu, 19 Agustus 2012 14:31:10 UTC+7, Chris Davenport menulis:
>> Did you do a $doc->setHeadData( $headData ); afterwards?
>> Chris.
>> On 19 August 2012 06:28, Viktor Iwan <vic...@doxadigital.com> wrote:
>>> Hello all, i try to remove some script/style in head document from a
>>> module/component..
>>> i'm using this code:
>>> $doc = JFactory::getDocument();
>>> $headData=$doc->getHeadData();
>>> unset($headData['styleSheets'][JURI::base(true).'/libraries/cck/rendering/a ssets/css/content.css']);
>>> when i trace, the array unset successfully, but the style still echo in
>>> the document ...
>>> any idea how to make it work ?
>>> --
>>> You received this message because you are subscribed to the Google
>>> Groups "Joomla! General Development" group.
>>> To view this discussion on the web, visit
>>> https://groups.google.com/d/msg/joomla-dev-general/-/v_UkAYN3ALIJ.
>>> To post to this group, send an email to joomla-de...@googlegroups.com.
>>> To unsubscribe from this group, send email to
>>> joomla-dev-general+unsubscribe@googlegroups.com.
>>> For more options, visit this group at
>>> http://groups.google.com/group/joomla-dev-general?hl=en-GB.
>> --
>> Chris Davenport
>> Joomla Production Leadership Team
Pada Senin, 20 Agustus 2012 10:20:47 UTC+7, Viktor Iwan menulis:
> Hi Chris, it did works ! but only when i remove a single array, if i did
> this:
> $doc = JFactory::getDocument();
> $headData=$doc->getHeadData();
> unset($headData['styleSheets'][JURI::base(true).'/libraries/cck/rendering/a ssets/css/content.css']);
> unset($headData['styleSheets'][JURI::base(true).'/libraries/cck/rendering/a ssets/css/cck.css']);
> unset($headData['scripts'][JURI::base(true).'/media/cck/scripts/jquery/js/j query-more.js']);
> $doc->setHeadData( $headData );
> it won't work... any idea ?
> Pada Minggu, 19 Agustus 2012 14:31:10 UTC+7, Chris Davenport menulis:
>> Did you do a $doc->setHeadData( $headData ); afterwards?
>> Chris.
>> On 19 August 2012 06:28, Viktor Iwan <vic...@doxadigital.com> wrote:
>>> Hello all, i try to remove some script/style in head document from a
>>> module/component..
>>> i'm using this code:
>>> $doc = JFactory::getDocument();
>>> $headData=$doc->getHeadData();
>>> unset($headData['styleSheets'][JURI::base(true).'/libraries/cck/rendering/a ssets/css/content.css']);
>>> when i trace, the array unset successfully, but the style still echo in
>>> the document ...
>>> any idea how to make it work ?
>>> --
>>> You received this message because you are subscribed to the Google
>>> Groups "Joomla! General Development" group.
>>> To view this discussion on the web, visit
>>> https://groups.google.com/d/msg/joomla-dev-general/-/v_UkAYN3ALIJ.
>>> To post to this group, send an email to joomla-de...@googlegroups.com.
>>> To unsubscribe from this group, send email to
>>> joomla-dev-general+unsubscribe@googlegroups.com.
>>> For more options, visit this group at
>>> http://groups.google.com/group/joomla-dev-general?hl=en-GB.
>> --
>> Chris Davenport
>> Joomla Production Leadership Team
Pada Senin, 20 Agustus 2012 10:20:47 UTC+7, Viktor Iwan menulis:
> Hi Chris, it did works ! but only when i remove a single array, if i did
> this:
> $doc = JFactory::getDocument();
> $headData=$doc->getHeadData();
> unset($headData['styleSheets'][JURI::base(true).'/libraries/cck/rendering/a ssets/css/content.css']);
> unset($headData['styleSheets'][JURI::base(true).'/libraries/cck/rendering/a ssets/css/cck.css']);
> unset($headData['scripts'][JURI::base(true).'/media/cck/scripts/jquery/js/j query-more.js']);
> $doc->setHeadData( $headData );
> it won't work... any idea ?
> Pada Minggu, 19 Agustus 2012 14:31:10 UTC+7, Chris Davenport menulis:
>> Did you do a $doc->setHeadData( $headData ); afterwards?
>> Chris.
>> On 19 August 2012 06:28, Viktor Iwan <vic...@doxadigital.com> wrote:
>>> Hello all, i try to remove some script/style in head document from a
>>> module/component..
>>> i'm using this code:
>>> $doc = JFactory::getDocument();
>>> $headData=$doc->getHeadData();
>>> unset($headData['styleSheets'][JURI::base(true).'/libraries/cck/rendering/a ssets/css/content.css']);
>>> when i trace, the array unset successfully, but the style still echo in
>>> the document ...
>>> any idea how to make it work ?
>>> --
>>> You received this message because you are subscribed to the Google
>>> Groups "Joomla! General Development" group.
>>> To view this discussion on the web, visit
>>> https://groups.google.com/d/msg/joomla-dev-general/-/v_UkAYN3ALIJ.
>>> To post to this group, send an email to joomla-de...@googlegroups.com.
>>> To unsubscribe from this group, send email to
>>> joomla-dev-general+unsubscribe@googlegroups.com.
>>> For more options, visit this group at
>>> http://groups.google.com/group/joomla-dev-general?hl=en-GB.
>> --
>> Chris Davenport
>> Joomla Production Leadership Team