[Typo3-dev] absolute or relative path?
Martinov Evgeniy
genuisereal at hotmail.com
Sat Oct 8 18:43:57 CEST 2005
HI, Dmitry,
I've made some research about why my references of type:
"fileadmin/myfolder/" are prefixed with absolute path prefix "/" symbol.
And it turned out that it is standard way of page generation in
tslib/pagegen.php file.
After all conntent is generated all references which start with
"media/
and
"fileadmin/
are delebirately prefixed with absRefPrefix = '/' symbol.
$GLOBALS['TSFE']->setAbsRefPrefix() function call is made.
I am trying now to understand why is it so? It seems to me that I cannot
understand the main idea why I cannot place files under fileadmin/ folder
and make relative references to them.
I have to point to that fact that browser anyway recognizes both references
with first slash and without it as relative reference that is why when I
click on it it works anyway - I can open file. But for indexed_search engine
this first slash has special meaning of absolute path which together with
default prefixing such references with first slash makes them absolute in
any case and prevents me to use fileadmin folder for stroring files that
have to be indexed.
I wonder if such behavior is normal, why is it so and what should I
understand in this case, and more over what would be a correct place where I
can upload my files.
I used fileadmin folder because it was very native to use it, cause system
File>List module use it and I can manage different file mounts under it. I
want to allow users to upload files and manage them. For my application it
is necessary that Admin user can access this files too, that is also
possibile from File>List module.
I also know how standard Filelinks(uploads) content element works: it
uploads new files or moves existing files from fileadmin folder to special
/uploads/ subfolder which is on the same level as fileadmin. But I cannot
use this technik because this uploads folder and files in it are meant to be
a part of database and must not be accessibile by other means that throught
Filelinks BE plugin. In my case I reach this goal by using filemounts
mechanism allowing my users to access files under special subfolders under
fileadmin only through special BE module interface which is similiar to
File>List but with additional processing of files which create also database
entries for pages and content elements with reference to the file.
Sorry if I worte too much but, I think it will help to understand my
situation and find the right solution easier.
Thanks in advance,
Evgeniy
_________________________________________________________________
Express yourself instantly with MSN Messenger! Download today it's FREE!
http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/
More information about the TYPO3-dev
mailing list