[TYPO3-dev] Add JS file from extbase extension
Kay Strobach
typo3 at kay-strobach.de
Fri Dec 14 14:24:25 CET 2012
Hi,
than use a typoscript condition in combination with a typoscript constant.
Regards
Kay
Am 14.12.2012 14:19, schrieb Tomiţă MILITARU:
> On Fri, Dec 14, 2012 at 3:12 PM, Mattias Nilsson <tollepjaer at gmail.com>wrote:
>
>> Hi,
>>
>> Why are you not including it by typoscript?
>>
>
> Well I want to be able to decide to include it or not on certain websites
> by a certain parameter. A solution with a typoscript would be okay also.
>
>
>> page {
>> includeJSFooter {
>> plugins = {$template.path}/JavaScript/plugins.js
>> }
>> }
>>
>> /Mattias
>>
>>
>> On Fri, Dec 14, 2012 at 2:07 PM, Tomiţă MILITARU
>> <tomita.militaru at gmail.com>wrote:
>>
>>> Hello,
>>>
>>> I am trying to add a JS file from within an extension code following this
>>> gist:
>>> https://gist.github.com/28645ad6b1ac2e484425
>>>
>>> But it doesn't seem to have any effect, tried also the other functions
>> from
>>> pagerender (eg. addJsFile), but with no effect.
>>>
>>> Any idea what is wrong / missing?
>>>
>>> --
>>> _______________________________________________
>>> TYPO3-dev mailing list
>>> TYPO3-dev at lists.typo3.org
>>> http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-dev
>>>
>> _______________________________________________
>> TYPO3-dev mailing list
>> TYPO3-dev at lists.typo3.org
>> http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-dev
>>
>
>
>
--
http://www.kay-strobach.de - Open Source Rocks
TYPO3 .... inspiring people to share!
Get involved: http://typo3.org
Answer was useful - feel free to donate:
-
https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=KPM9NAV73VDF2
- https://flattr.com/profile/kaystrobach
More information about the TYPO3-dev
mailing list