Skip to content

If typolink generates parameter.-Array the link cannot be created #22

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

merzilla
Copy link

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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant