[Typo3-dev] Absolute paths

Kraft Bernhard kraftb at mokka.at
Fri Jan 14 19:03:22 CET 2005


Hello dev list,

I have a question regarding fuctions such as
newContentElementOnClick(...)
in
typo3/sysext/cms/layout/class.tx_cms_layout.php

in the line
----
$onClick="document.location='db_new_content_el.php?id=".$id.'&colPos='.$colPos.'&sys_language_uid='.$sys_language.'&uid_pid='.
$id.'&returnUrl='.rawurlencode(t3lib_div::getIndpEnv('REQUEST_URI'))."';";
----

there is the path 'db_new_content_el.php' hardcoded into the file.
so it is not possible to call this function from user extensions
which reside in another directory.

i tried using a
<base href="...">
tag but it seems as this doesn't work on urls set via javascript.

is there some solution or will I have to overwrite the function ?

greets,
Bernhard




More information about the TYPO3-dev mailing list