Bug #82116
closedLinkhandler doesn't build links when using registerPageTSConfigFile
0%
Description
Hi,
we're trying to provide a news Linkhandler like in this tutorial: https://usetypo3.com/linkhandler.html
But when we're inserting the tsconfig by using the following script in `Configuration/TCA/Overrides/pages.php`:
```
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::registerPageTSConfigFile(
'theme_paperclip',
'Configuration/PageTS/Linkhandler/tx_news_news_typo3-8.typoscript',
'Linkhandler configuration for News (TYPO3 8.7)'
);
```
..the link in frontend isn't rendered. The news-link in backend is selectable in RTE and everything else works fine.
When we paste the content of the `Configuration/PageTS/Linkhandler/tx_news_news_typo3-8.typoscript` directly into the tsconfig field of our root page, the link is rendered in frontend.
So, it seems that `registerPageTSConfigFile` doesn't provide always the contained ts config.
Updated by Riccardo De Contardi over 6 years ago
- Category set to Link Handling, Site Handling & Routing
Updated by Georg Ringer over 6 years ago
- Is duplicate of Bug #82293: Centralize getPagesTSconfig methods added
Updated by Georg Ringer over 6 years ago
- Status changed from New to Closed
I am closing this because of #82293 which describes the problem a bit better.
Updated by Karsten Nowak (undkonsorten) over 6 years ago
I can confirm this.
If I use the registerPageTSConfigFile it doesn't work.
My workaround:
It works with the method "addPageTSConfig" and loading the file with the <INDLUDE> command.