featdd / dpn_glossary

Glossary extension for TYPO3

Home Page:http://typo3.org/extensions/repository/view/dpn_glossary

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Term-name is linked to part page (term-mode link)

Tobias-Gl opened this issue · comments

Hello, with the term-mode link, the term-name on the target page is linked by the parser and not excluded. This means that the term refers to itself on the corresponding target page.
With the term-mode normal, the corresponding term-name on the detail page is not linked.
Is it possible to adjust the behavior of the term-mode link as with the term-mode normal?

Hi @Tobias-Gl,

yes I implemented a feature for this here:

} elseif (str_starts_with($termLink, 't3://page')) {
parse_str(htmlspecialchars_decode(parse_url($termLink, PHP_URL_QUERY)), $queryParameters);
$linkTargetPage = (int)($queryParameters['uid'] ?? null);
$termLinkIsCurrentPage = $linkTargetPage === $currentPageId;

You can enable this by enable this settings: settings.excludeTermLinksTargetPages = 1
Also have a look in the documentation.

Greetings
Daniel