[Typo3-dev] Clickmenu and content frame
Michael Scharkow
mscharkow at gmx.net
Tue Apr 27 21:37:11 CEST 2004
Wolfgang Klinger wrote:
> Don't know if I got it right,
> but there should be some lines like
> ---
> $url = t3lib_extMgm::extRelPath("my_ext")."cm1/index.php?id=".$uid.'&function=something';
> $localItems[] = $backRef->linkItem(
> $GLOBALS["LANG"]->getLLL("cm1_title_expand",$LL),
> $backRef->excludeIcon('<img src="'.t3lib_extMgm::extRelPath("my_ext").'cm1/cm_icon.gif" width="14" height="12" border="0" align="top">'),
> "top.content.nav_frame.document.location='".$url."';
> ",
> 0
> );
> ---
> in ..._cm1.php
>
> As you can see it's possible to set the target (= onclick handler) to anything as
> third parameter... (isn't that set by default? can't remember...)
Yes, that was the problem because the lines were like
$localItems[] = $backRef->linkItem(
$GLOBALS["LANG"]->getLLL("cm1_title",$LL),
$backRef->excludeIcon('<img
src="'.t3lib_extMgm::extRelPath("ux_auth_folder").'cm1/cm_icon.gif"
width="15" height="12" border=0 align=top>'),
$backRef->urlRefForCM($url),
,0 );
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
this urlRefForCM() was there instead of what you suggested, we just
didn't know what this function returns (and I was planning to find out
today).
BUT your hint was the missing link, and now
top.content.file_list_frame.document.location [...]
works perfectly.
Thank you very much for the prompt and invaluable help! We can now put
it in the repository :)
Greetings,
Michael
More information about the TYPO3-dev
mailing list