Issue Bug Closed

#83056Cannot set pageIdSelector configuration on link browser (outside of rte)

Felix Paul 11/21/17, 12:25 updated 04/21/20, 10:42

Description

Configure this page TSconfig:
@TCEMAIN.linkHandler.page.configuration.pageIdSelector.enabled = 1@

As backend-user:

  1. Add new Content to a page
  2. Select “Regular Text Element”
  3. In the “General” tab, next to the “Link” field, click on the link symbol to open the link browser
  4. The input field for entering the page UID is not shown

In the PageLinkHandler::modifyLinkAttributes(..) method the link browser uses the “default” configuration (the AbstractLinkBrowserController::getConfiguration() method is called) which is just an empty array that cannot be overwritten. Thus the pageIdSelector property can not be set.

Expected Behaviour:
-> Link browser loads its configuration, which is then checked in the PageLinkHandler::modifyLinkAttributes(..) method. This allows setting of the “pageIdSelector.enabled” property for the link browser. (Note that the link browser when opened from the RTE editor does load a configuration, which allows enabling of the pageIdSelector)

Reviews 2