[Typo3-dev] absolute or relative path?
Martinov Evgeniy
genuisereal at hotmail.com
Sat Oct 8 13:39:36 CEST 2005
Hi, everyone,
my extension is meant to publish references to uploaded pdf files
automatically, then I use indexed_search to index these pages and as a
consiquence external files too.
I upload files to the directory under fileadmin/mydirectory/
then I create new page with corresponding content element I use CType: html
and in bodytext I place such code for the reference to apear on the page:
<a href="fileadmin/mydirectory/myfile.pdf">myfile.pdf</a>
here I use relative path to the TYPO3_DOCUMENT_ROOT
The problem is that under windows this works perfectly and indexed_search
indexes this external file by this reference.
But in linux there is difference when page is generated. TYPO3, instead of
using my bodytext as is, changes href attribute inside my tag to this:
<a href="/fileadmin/mydirectory/myfile.pdf">myfile.pdf</a>
and adds first slash! in tt_content table I have string without first slash!
Indexed_search cannot index this reference cause it intreprets such
reference not as relative but as absolute path to the file.
Can anyone help me to solve this problem?
thank you 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