[TYPO3-core] RFC #8864: absRefPrefix does not recognize EXT: and typo3conf/ext/

Benjamin Mack benni at typo3.org
Mon Jun 30 15:26:00 CEST 2008


Hey all,

this is a SVN patch request.

Type: bugfix

Branches: 4.2 and trunk

BT reference: http://bugs.typo3.org/view.php?id=8864

Description: If you use config.absRefPrefix = http://www.domain.com/ [^] 
it works just nice for e.g. my CSS files in fileadmin/css or all media 
files, but if I include static CSS or JS files from templates, it does 
not work. So basically I have this in my TS setup:

page.includeCSS.file1 = fileadmin/templates/mycss.css
page.includeCSS.file2 = EXT:myext/mycss.css

in my HTML output it looks like this:

<link rel="stylesheet" type="text/css" 
href="typo3conf/ext/myext/mycss.css" />
<link rel="stylesheet" type="text/css" 
href="fileadmin/templates/mycss.css" />

Now I add

page.config.absRefPrefix = /

then the output is

<link rel="stylesheet" type="text/css" 
href="typo3conf/ext/myext/mycss.css" />
<link rel="stylesheet" type="text/css" 
href="/fileadmin/templates/mycss.css" />

so it's missing the prefix.

Solution: Add it not only to media/ and fileadmin/ but also to 
typo3conf/ext/

Notes: The patch also fixes the hardcoded fileadmin directory in that case.


-- 
greetings,
benni.
-SDG-
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 20080630_absrefprefix.patch
Type: text/x-diff
Size: 1334 bytes
Desc: not available
Url : http://lists.netfielders.de/pipermail/typo3-team-core/attachments/20080630/bfea03a5/attachment.patch 


More information about the TYPO3-team-core mailing list