[TYPO3-english] Linkhandler hook on TYPO3 8

José Ricardo jose.ricardo at convergenceworks.com.br
Wed Jun 7 16:42:30 CEST 2017

Alex, the link you sent is for the CobWeb plugin tx_linkhandler, not for
the native LinkHandler of TYPO3 8. It doesn't work.

Analysing the code at TYPO3\CMS\Core\LinkHandling\LinkService, there is an
global array $GLOBALS['TYPO3_CONF_VARS']['SYS']['linkHandler'] which can
handle the link types (page, url, email, file, folder, record and unknown),
but the handler for the record type
(TYPO3\CMS\Core\LinkHandling\RecordLinkHandler) does not have any hook to
allow changing the parameter of a link dynamically.

What i'm trying to do is to dynamically set the typolink parameter for a
link like t3://record?identifier=tx_news&uid=2 based on a configuration
made by the user on a field on the page (not via Typoscript) and also based
on the pid of the news record (the pid of news determines its single).

How can I achieve this on TYPO3 8.7? Should I extended the
RecordLinkHandler class?

2017-06-06 16:08 GMT-03:00 Alex Kellner <alexander.kellner at einpraegsam.net>:

> See http://www.npostnik.de/typo3/hook-implementierung-fuer-linkhandler/
> for an example implementation
> --
> TYPO3 separates the men from the boys :D
> TYPO3-Training from in2code.de
> _______________________________________________
> TYPO3-english mailing list
> TYPO3-english at lists.typo3.org
> http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-english


José Ricardo
Líder Técnico
Desenvolvimento Backend

tel +55 71.3271.7646 *• * Skype *jr.convergence*
[image: Convergence Works] <http://www.cworks.com.br/> Rua Rubens Gueli,
Edf. Empresarial Itaigara, 134, sala 309
Itaigara, Salvador  •  BA  •  41815-135  •
www.cworks.com.br  •  tel +55 71.3271.7646

Este e-mail e seus anexos são para uso exclusivo do destinatário e podem
conter informações confidenciais e/ou legalmente privilegiadas. Não podem
ser parcial ou totalmente reproduzidos sem o consentimento do autor.
Qualquer divulgação ou uso não autorizado deste e-mail ou seus anexos é
proibida. Se você receber esse e-mail por engano, por favor, notifique o
remetente e apague-o imediatamente.

This e-mail and its attachments are for the sole use of the addressee and
may contain information which is confidential and/or legally privileged.
Should not be partly or wholly reproduced without consent of the owner. Any
unauthorized use of disclosure of this e-mail or its attachments is
prohibited. If you receive this e-mail in error, please immediately delete
it and notify the sender by return e-mail.

More information about the TYPO3-english mailing list