Project

General

Profile

Actions

Bug #81903

closed

DatabaseRecordLinkBuilder is ignoring other settings

Added by René Pflamm almost 7 years ago. Updated over 5 years ago.

Status:
Closed
Priority:
Must have
Assignee:
-
Category:
-
Target version:
-
Start date:
2017-07-18
Due date:
% Done:

100%

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

Description

The DatabaseRecordLinkBuilder is ignoring other settings make via typoscript.

So for example the ATagParams setting is ignored.

To Reproduce:

Make an Linkhandler for news, eg:

TCEMAIN.linkHandler {
  # Pressemitteilungen
  tx_news {
    handler = TYPO3\CMS\Recordlist\LinkHandler\RecordLinkHandler
    label = Pressemitteilungen

    configuration {
      table = tx_news_domain_model_news
      storagePid = 136
      hidePageTree = 1
    }

    scanAfter = page
  }
}

Now use typoscript to render the Link:

link = TEXT
link {
  value = Test
  typolink {
    parameter = t3://record?identifier=tx_news&uid=12046
    ATagParams = class="test" 
  }
}

You will see the added class will not be rendered.

My simple soloution: merge the Link Conf array with the typoScriptConfiguration for the linkHandler (see example Patch attached).


Files

DatabaseRecordLinkBuilder.patch (979 Bytes) DatabaseRecordLinkBuilder.patch René Pflamm, 2017-07-18 10:00

Related issues 3 (0 open3 closed)

Related to TYPO3 Core - Bug #81620: Linkhandler remove all attributes set in the link wizard and the templateClosed2017-06-19

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

Actions
Related to TYPO3 Core - Bug #80896: TypolinkViewhelper with linkhandler ignores class attributeClosed2017-04-19

Actions
Actions

Also available in: Atom PDF