[TYPO3-core] RFC: removing symlinks - Report

René Fritz rene at typo3.org
Mon Feb 13 13:08:04 CET 2006


Here's a report of the changes I've done to make T3 installation working 
without symlinks.

This is open for discussion but should lead into a decision if this should be 
committed into CVS or not. So just giving a +-1 is ok too.


What is it for?
The changes allow to install typo3_src without using symlinks which is a big 
advantage for ftp-only accounts and windows. But you still can use symlinks 
for typo3_src and version switching for example.
You also can use the symlinks like before and all is like it was for hundreds 
of years with a tiny difference: one symlink needs to be set different.

Disadvantages:
- Extensions with hardcoded paths might be broken when symlinks are not used. 
This can be fixed by just using the symlinks.
- BE extensions that use t3lib/gfx/ instead of gfx/ needs to be changed  when 
symlinks are not used.
- When using the symlinks, one symlink is different: t3lib/gfx/ needs to be 
linked to typo3/gfx/


General note:
Not a single script file was moved!


Changes:

# Folder t3lib/gfx/ is moved to typo3/gfx/
The images there are BE stuff anyway

# All references in BE code to t3lib/gfx/ are changed to gfx/

# FE-editing and admin panel icon references in FE code to t3lib/gfx/ are 
changed to typo3/gfx/

# References to t3lib/jsfunc.* are changed to ../t3lib/jsfunc.*

# Added typo3/thumbs.php which include t3lib/thumbs.php

# copied gfx/fileicons/ to tslib/media/fileicons/ for FE usage

# changed tslib_cObj::filelink() to use the file icons

# added tslib/media/miscicons/ and copied following icons there
(these are used by tslib_cObj and by media/scripts/)
content_client.gif
content_default.gif
content_fresh.gif
content_selected.gif
notfound_thumb.gif
notfound_thumb.png

# made a few changes to PATH_* definitions
see
typo3/sysext/cms/tslib/index_ts.php
typo3/init.php
t3lib/thumb.php

# changed indexed search to use media/flags/flag_*.gif

# added index.php and showpic.php to root dir which include tslib/index_ts.php 
and tslib/showpic.php



TODOs
(these are not necessarily my todo's, please take over)

- review tslib_cObj::filelink()

- review indexed search using media/flags/

- review (espacially PATH_* definitions)
/index.php
/showpic.php
typo3/sysext/cms/tslib/index_ts.php
typo3/init.php
t3lib/thumb.php

- update docs and scripts that are related to symlinks because gfx/ is now in 
typo3/ and not in t3lib/

- install and test


That's it. Into CVS or not? Other comments?

René


-- 
René Fritz
TYPO3 Association - Active Member
http://association.typo3.org/



More information about the TYPO3-team-core mailing list