[solved] $doc->addScript does not work in layout templates

More
11 years 3 months ago #39401 by hede
I did nothing else than upgrading, so Im pretty sure there is a difference in the new version.

I thought this answered your question:

The error was that your css and script were not included anymore.

Apart from that no error.

FF on Win10, FLEXIcontent version 3.0.10 on Joomla 3.4

Please Log in or Create an account to join the conversation.

More
11 years 3 months ago #39402 by ggppdk
Hello

what is files are not included?

what do you mean not include, you checked the HTML page source and they are not there OR the CSS are not applied?

maybe there was a JS error in v2.0.2, but this may cause JS code not to be executed but it will not prevent files for being included in the header,

in short FLEXIcontent version could never prevent CSS / JS from being included in the HTML header, and you have not answered me if you viewed the page source, also i ask for doing "view page source" because IE will not use more than 32 CSS files


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star...

Please Log in or Create an account to join the conversation.

More
11 years 3 months ago #39403 by hede
"not included" means that those two lines were not executed:
Code:
JFactory::getDocument()->addScript( JURI::base().'components/com_flexicontent/assets/js/tabber-minimized.js'); JFactory::getDocument()->addStyleSheet(JURI::base().'components/com_flexicontent/assets/css/tabber.css');
I cant do any debugging anymore on 2.0.2 now since I upgraded already to 2.1.0 and the new version works as expected.

cheers

FF on Win10, FLEXIcontent version 3.0.10 on Joomla 3.4

Please Log in or Create an account to join the conversation.

More
11 years 3 months ago #39408 by ggppdk
Hello,

anyway the addStyleSheet() cannot depend on FLEXIcontent version, you have made some other mistake here, it just add something to a PHP array that is later used to add the array content to HTML head


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star...

Please Log in or Create an account to join the conversation.

Moderators: vistamediajoomlacornerggppdk
Time to create page: 1.016 seconds
Save
Cookies user preferences
We use cookies to ensure you to get the best experience on our website. If you decline the use of cookies, this website may not function as expected.
Accept all
Decline all
Essential
These cookies are needed to make the website work correctly. You can not disable them.
Display
Accept
Analytics
Tools used to analyze the data to measure the effectiveness of a website and to understand how it works.
Google Analytics
Accept
Decline