Bug #6297
Not possible to create link to Typo3-Pages with additional piVars
Added by Mathias Gisch over 12 years ago.
Updated over 11 years ago.
Description
If I want to create a link to a Typo3-Page and add addtional attributes for old-style pibase-Plugins the Viewhelper throws an exception:
#1237900520: The argument additionalAttributes was registered with type array, but is of type string in viewhelper Tx_Fluid_ViewHelpers_Link_PageViewHelper
Try the following:
<f:link.page pageUid="{detailsPage}" additionalAttributes="{tx_ltpdb_test[argument]: 234}">Test</f:link.page>
Files
i can confirm this behavior.
I can confirm this behaviour, too.
Without squared brackets the link creation works fine. Special characters like squared brackets or their replacements %5B and %5D somehow seem to break the creation of the array.
I found out, how to solve the Problem.
Actually the UriBuilder accepts the arguments with a prefix in the following syntax:
<f:link.page pageUid="{detailsPage}" additionalAttributes="{tx_ltpdb_test: {argument : 234}}">Test</f:link.page>
This will result in a proper link like this:
<a href=".....&tx_ltpdb_test[argument]=234...">Test</a>
- Status changed from New to Accepted
- Assignee set to Sebastian Kurfuerst
- Priority changed from Should have to Must have
- Status changed from Accepted to Resolved
- % Done changed from 0 to 100
- Branch set to v4
Also available in: Atom
PDF