Project

General

Profile

Actions

Bug #84266

closed

DatabaseRecordLinkBuilder doesn't unset $conf['parameter']

Added by Tizian Schmidlin over 6 years ago. Updated over 6 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Frontend
Target version:
Start date:
2018-03-14
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
8
PHP Version:
7.0
Tags:
typolink
Complexity:
Is Regression:
Sprint Focus:

Description

According to documentation, I should be able to configure the recordLink handler as follows:

config.recordLinks {
    tx_news {
        typolink {
            parameter = {$PID.newsPage}
            additionalParams.data = field:uid
            additionalParams.wrap = &id={$PID.newsPage}&tx_news_pi1[controller]=News&tx_news_pi1[action]=detail&tx_news_pi1[news]=|
            useCacheHash = 1
            ATagParams.data = parameters:allParams
            target.data = parameters:target
            title.data = parameters:title
            extTarget = _blank
            extTarget.override.data = parameters:target
        }
        forceLink = 1
    }
}

This doesn't work since DatabaseRecordLinkBuilder also creates a parameter element in its config which, when merged with above configuration results in a parameter value that is an array instead of a string (which would be expected by typoLink).

In order to solve this, something has already been done in on line 64 by unsetting $conf['parameter.']. When unsetting $conf['parameter'] everything seems to be fine (I'll attach a patch file later).

Feel free to ask if anything is unclear.

Best Regards
Tizian


Files

84266.diff (796 Bytes) 84266.diff Tizian Schmidlin, 2018-03-14 17:13

Related issues 1 (0 open1 closed)

Is duplicate of TYPO3 Core - Bug #84116: Linkhandler links not rendered in frontend when TSConfig configuration is applied using "registerPageTSConfigFile()" or "addPageTSConfig()"Closed2018-03-02

Actions
Actions

Also available in: Atom PDF