Bug #6297

Not possible to create link to Typo3-Pages with additional piVars

Added by Mathias Gisch almost 12 years ago. Updated over 11 years ago.

Status:
Resolved
Priority:
Must have
Category:
-
Target version:
-
Start date:
2010-02-01
Due date:
% Done:

100%

Estimated time:
Has patch:

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

FluidPatch.patch (804 Bytes) FluidPatch.patch Patch for the ViewHelper Description Falk Kühnel, 2010-02-24 14:08
#1

Updated by Falk Kühnel almost 12 years ago

i can confirm this behavior.

#2

Updated by Anonymous almost 12 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 almost 12 years ago

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 almost 12 years ago

  • Status changed from New to Accepted
  • Assignee set to Sebastian Kurfuerst
  • Priority changed from Should have to Must have
#5

Updated by Sebastian Kurfuerst almost 12 years ago

  • Status changed from Accepted to Resolved
  • % Done changed from 0 to 100
  • Branch set to v4

Also available in: Atom PDF