If typolink generates parameter.-Array the link cannot be created #22
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Hi François,
I have the following scenario:
We use page´s media field (so images from sys_file_reference) to build a header slider. The Slider is built with TypoScript cObject "FILES". This one has a "renderObj = COA", where inside the COA a cObject TEXT generates the typolink.
Now, the typolink has to use "typolink.parameter.data = file:current:link", which works for normal (internal) pages. I added the line "mergeWithLinkhandlerConfiguration = 1" and linked to a news record.
Ah, "returnLast = url" is also set.
So now, in the frontend the href of the link is "Error :". So i debugged and found out, that the whole message would be "Error: no file object", as it tries to find the file in the meanwhile given news record (instead of pages).
But as "$linkHandlerValue" keeps the right string for the news link, it works if you unset the this array "$configuration['parameter.']".
So that´s the story about this pull request. Maybe you also think, that this is a good thing?
Thanks for the great linkhandler, dude.
Kind regards
merzilla
(t3quetsche)