Quantcast
Channel: Discussions - T3 - Joomla Template Framework
Viewing all articles
Browse latest Browse all 3483

Third party component not able to add scripts to the template.

$
0
0
Hi all,

I am using Joomlart Cloris template for my site. I installed a component called "Akeeba Subscriptions". Is a free component for plan subscription. I have tested the component on a blank Joomla 3.3 site (without T3 framework). It works perfectly. So I can say the component is totally fine.

When I install the component to my T3 Site (Cloris Template), some of the Javascript and CSS script is not loaded to the template. I tried to debug by editing the Akeeba component source code. There is a line of code like this in the application's bootstrap php script:

JFactory::getDocument()->addScript($url . $tag);

This code is actually the Joomla core function that used to add a javascript to the template. I tried to print the value of $url . $tag, it has value with it and is a full URL and is valid (I tried paste the link on my browser and the JS script loaded).

But when the page loaded, the javascript is not shown in the section. By the way, I had turned off the join & minified feature from my template so all script are added separately on the HTML page. But I can't find the script that suppose to add for my third party application.

Anything I can do to troubleshoot this matter? To me, it seems like the T3 framework had flushed the scripts that was added by the third party application. Because I tried use the same function in the view script of the third party component file, it works:

// With $url = 'some valid script';
JFactory::getDocument()->addScript($url);

Any hint is much appreciated. Thank you!

Viewing all articles
Browse latest Browse all 3483

Trending Articles