[TYPO3-dev] typolink.userFunc just handles first part of Link
Steffen Kamper
steffen at sk-typo3.de
Sat Jun 9 17:33:19 CEST 2007
"Tapio Markula" <tapio.markula at xetpoint.fi> schrieb im Newsbeitrag
news:mailman.1.1181396240.16733.typo3-dev at lists.netfielders.de...
> Steffen Kamper
>>
>> look to this bugfix : http://bugs.typo3.org/view.php?id=5701
>> then you can use the linkhandler hook and you can do what you want ;)
>>
>> vg Steffen
>
> What is the proper value for [$linkHandlerKeyword]
> in
> $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['tslib/class.tslib_content.php']['typolinkLinkHandler'][$linkHandlerKeyword]?
>
> In general hooks uses clear names, but not in this case.
in this hook you define the keyword.
For example cal uses this:
$GLOBALS
['TYPO3_CONF_VARS']['SC_OPTIONS']['tslib/class.tslib_content.php']['typolinkLinkHandler']['calendar']
= 'EXT:cal/controller/class.linkHandler.php&tx_linkHandler';
the keyword calender is bound to this hook. Now you can enter a link in rte
like:
<link calendar:somevalue>cal link</link>
and the hook will call the main-function from tx_linkHandler.
vg Steffen
More information about the TYPO3-dev
mailing list