Bug #6297
Not possible to create link to Typo3-Pages with additional piVars
Status: | Resolved | Start date: | 2010-02-01 | |
---|---|---|---|---|
Priority: | Must have | Due date: | ||
Assigned To: | Sebastian Kurfuerst | % Done: | 100% |
|
Category: | - | |||
Target version: | - | |||
Has patch: | Affected Flow version: |
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>
History
#1 Updated by Falk Kühnel over 5 years ago
i can confirm this behavior.
#2 Updated by Michael Telgkamp over 5 years ago
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.
#3 Updated by Falk Kühnel over 5 years ago
- File FluidPatch.patch added
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>
#4 Updated by Sebastian Kurfuerst over 5 years ago
- Status changed from New to Accepted
- Assigned To set to Sebastian Kurfuerst
- Priority changed from Should have to Must have
#5 Updated by Sebastian Kurfuerst over 5 years ago
- Status changed from Accepted to Resolved
- % Done changed from 0 to 100
- Branch set to v4