[TYPO3] including files in TYPO3 v4.x

Chun loong Chao typo3tech_REMOVE_ME_ at gmail.com
Tue Dec 26 14:01:37 CET 2006


Simon Child wrote:
> Has the syntax for including files changed with v 4.x? What syntax should 
> work now?
> 
> 
> In 3.8. and earlier this worked:
> 
> includeLibs.myMenu = media/scripts/menuinclude.inc
> 
> but when I built a new site with v4 I found this didn't work, the file 
> didn't get included (and it was definitely at the above location, I had 
> remade directory media/scripts). Eventually I workedaround by putting it in 
> localconf.php
> 
> 
> Now, upgrading another site from 3.62 to 4.0.4 I find that also 
> PHP_SCRIPT_EXT will no longer include a file, it ignores it with syntax that 
> worked for 3.62:
> 
> temp.extracontent = PHP_SCRIPT_EXT
> temp.extracontent.file = media/scripts/filetoinclude.inc
> 
> The file is there, the content is the same as before, also tried a 
> simplified file with just one echo statement, also tried full path not just 
> relative path, nothing shows.
> 
> This I can't put in localconf.php (It is different script on different 
> pages).
> 
> 
> I've tried putting this at the bottom of localconf.php, but it didn't help
> 
> $TYPO3_CONF_VARS["FE"]["noPHPscriptInclude"]=0;
> 
> 
> 
> Thanks
> 
Hi,
The path had changed since 4.0.
That must be referenced through EXT:cms/tslib/media/scripts
So Now:
includeLibs.myMenu = EXT:cms/tslib/media/scripts/menuinclude.inc

regards
-- 
FreeBSD/Apache2.0.54(Unix)/PHP4.4.2/MySQL4.1.18
typo3tech REMOVE_ME at gmail.com


More information about the TYPO3-english mailing list