[TYPO3-english] CLOSED: Filelinks path

Bjoern Pedersen bjoern.pedersen at frm2.tum.de
Tue Nov 23 16:42:30 CET 2010


Am 23.11.2010 16:19, schrieb John D. Shull:
> Just found this:
> 
> http://www.mail-archive.com/typo3-english@lists.typo3.org/msg00866.html
> 
> Apparently there is something hardcoded in Typo3 which prohibits
> internally pointing to a folder named 'media' in the root, which is just
> what I was trying to do.
> 
> Not going to fight it any more.  Will work within the fileadmin folder.
> 
> Thanks all.
> 
Hi,

That bug should be  fixed in 4.3 and newer:
http://bugs.typo3.org/view.php?id=12794


from the filelist function:
      $data = trim($data);
      if ($data) {
           $data_arr = explode('|', $data);
              // read directory:
              if ($GLOBALS['TSFE']->lockFilePath) { // MUST exist!
                   $path = 	$this->clean_directory($data_arr[0]); //
Cleaning name..., only relative paths accepted.
// see if path starts with lockFilePath, the additional '/' is needed
because clean_directory gets rid of it
$path = (t3lib_div::isFirstPartOfStr($path . '/',
$GLOBALS['TSFE']->lockFilePath) ? $path : '');
                        }

This means:
You can have only one lockFilePath and that has to end on /.
The default is probably fileadmin/

Björn


More information about the TYPO3-english mailing list