I performed the following test:
Prerequisites¶
1) TYPO3 8.7.12
2) EXT:news 6.3.0
3) the news records are stored in a sysfolder with uid=9
4) I created two pages: one to list the news (uid=7) and one for the detail view of the news (uid=8)
5) I created a "sitepackage-like" extension EXT:bhsiteconf
Test Execution¶
1) I stored the TSConfig configuration in the file EXT:bhsiteconf/Configuration/TSConfig/Page/TCEMAIN.typoscript; the file is loaded via \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::registerPageTSConfigFile
2) The relevant part of the TSConfig for the linkhandler is:
TCEMAIN.linkHandler.news {
handler = TYPO3\CMS\Recordlist\LinkHandler\RecordLinkHandler
label = NEWS
configuration {
table = tx_news_domain_model_news
storagePid = 9
}
scanBefore = page
}
3) The The TS Setup of the extension is loaded using \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addStaticFile
; the setup.typoscript file just contains a line that loads all the .typoscript files inside a folder:
<INCLUDE_TYPOSCRIPT: source="DIR:EXT:bhsiteconf/Configuration/TypoScript/Setup/" extensions="typoscript">
4) I write on one of those files:
config.recordLinks.news {
forceLink = 0
typolink {
parameter = 8
additionalParams.data = field:uid
additionalParams.wrap = &tx_news_pi1[news]=|&tx_news_pi1[controller]=News&tx_news_pi1[action]=detail
useCacheHash = 1
}
}
5) I created some news
6) On a page, I added a content element (e.g. Text); typed a title like "sample" and clicked on the link button to add a link to it
Results¶
- the link wizard popup has a "NEWS" tab; the news records can be selected as links
- the link is reported in the "link" field of the headline as "t3://record?identifier=news&uid=7"
- previewing the frontend, the link is rendered and works (goes to the correct detail news)
Do you think that this is sufficient to consider this issue resolved? Should a different test be performed? If it is so, could you add a step-by-step guide about how to reproduce the issue.
Thank you!