[TYPO3-english] 4.5 includeCSS/includeJS outside template path?
Patrick Schriner
patrick.schriner at diemedialen.de
Mon Oct 29 12:47:13 CET 2012
Hi Daniel,
If I understand the code (class.tslib_pagegen.php and
class.t3lib_tstemplate.php (getFileName)) correctly, any file that is not
marked as "external" will be tested against t3lib_tstemplate->allowedPaths
(if it's not an EXT: link), which will normally not include custom
directories. You might try if "external" is an option for you, as almost
no checks are done to external files.
Patrick
p.s.: of interest:
http://typo3blog.at/blog/artikel/wie-binde-ich-css-in-typo3-ein/
On Mon, 29 Oct 2012 12:26:35 +0100, Daniel Neugebauer
<mailinglists at energiequant.de> wrote:
> Hi!
>
> I'm trying to include CSS and JS files that reside outside fileadmin but
> they don't show up on FE. I tried:
>
> includeCSS.10 = folder/file.css
> includeCSS.20 = /folder/file.css
> includeCSS.30 = /full/serverside/path/folder/file.css
> includeCSS.40 = http://my.domain.tld/folder/file.css
>
> Neither works, same for JS...
>
> How can I get such paths included? Is there some option I have to set?
>
> I know I can use headerData instead and simply use plain HTML for my
> includes but I wanted to avoid that. IMO at least .30 and .40 should
> work to address such files. With .40 not being possible, other problems
> arise such as CDNs or hosted web fonts being unusable. It would be great
> if there was support for these types of includes, if there isn't.
>
> Typo3 version is 4.5.
>
> Thanks,
> Daniel
--
Patrick Schriner
More information about the TYPO3-english
mailing list