Issue Feature Closed

#104479Add possibility to customize pre-selected target values/options in LinkBrowser

Moritz Ngo 07/25/24, 13:27 updated 12/22/24, 22:33

Description

It would be a great addition to the usability of TYPO3 CMS’ LinkHandler, when the pre-selected target values/options can be customized.
Currently it’s only possible to select from the values/options “Top“[_top] and “New Window“[_blank], which are hard-coded in the following classes/methods:

clipboard-202407251515-okn5b.png

Here are some user stories that’ll describe several use-cases:

  1. As a backend user , I want to select customized pre-selected target values/options in the LinkBrowser.
  2. As a TYPO3 CMS Integrator , I want to configure the pre-selected target values/options of the LinkBrowser via TsConfig.
  3. As a TYPO3 CMS Developer , I want to manipulate the pre-selected target values/options of the LinkBrowser via a PSR-14 Event.

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.

Files 1

History 7

  1. Moritz Ngo changed description 07/25/24, 13:30

  2. Moritz Ngo changed description 07/25/24, 13:34

  3. Garvin Hicking commented and changed status New Needs Feedback 07/25/24, 17:43

    Could you maybe describe the use case for this? I only remember targets other than the hardcoded ones from the “dark ages of framesets”, so I’d be curious where this could be used. :-)

  4. Garvin Hicking changed category 07/25/24, 17:44

  5. Moritz Ngo commented 07/25/24, 22:00

    A common use-case would be somthing like a lightbox or modal box.

    In my particular case, I needed the value “Overlay“[overlay] and added a patch-file which adds a new hard-coded option :P

  6. Garvin Hicking commented 07/26/24, 05:33

    Ah, thank you.

    I wonder though, could you just use CSS classes and predefined ones, and then have your javascript that spawns modals/lightboxes react based on class name instead of target-attribute?

    This would of course be a workaround. I think if a target list gets changeable it would need to be inplemented to all of: Typoscript configration, yaml configuration, TCA definition (like the other fields), which is a bit of work. ;)

  7. Garvin Hicking commented and changed status Needs Feedback Closed 12/22/24, 22:33

    I’m closing this due to lack of feedback. If you feel this is a mistake please follow up with more details. Thank you!