Bug #12863

Attributes of a viewhelper can't contain a '-'

Added by Georg Ringer over 10 years ago. Updated over 9 years ago.

Status:
New
Priority:
Should have
Category:
Core
Target version:
-
Start date:
2011-02-08
Due date:
% Done:

0%

Estimated time:
Has patch:
No

Description

It seems that a '-' in the key of an attribute destroys everything

example of viewhelper

<f:for each="{wallpapers}" as="wallpaper">
<w:download allow-Upscaling="1" src="uploads/tx_wallpaper/{wallpaper.image}">1920 x 1200</w:download><br />
</f:for>

gives the error

Templating tags not properly nested. Expected: Tx_Fluid_ViewHelpers_ForViewHelper; Actual: Tx_Wallpaper_ViewHelpers_DownloadViewHelper

2 possible solutions (IMHO):
- Allow the '-'
- Define allowed chars (a-z,0-9) and throw a correct exception

#1

Updated by Sebastian Kurfuerst about 10 years ago

  • Category set to Core
  • Assignee set to Sebastian Kurfuerst
  • Priority changed from Should have to Must have
  • Target version set to 1.0 beta 1
#2

Updated by Sebastian Kurfuerst about 10 years ago

  • Parent task set to #26665
  • Has patch set to No
#3

Updated by Sebastian Kurfuerst about 10 years ago

  • Tracker changed from Task to Bug
  • Parent task deleted (#26665)
#4

Updated by Sebastian Kurfuerst almost 10 years ago

  • Priority changed from Must have to Should have
  • Target version changed from 1.0 beta 1 to 1230
#5

Updated by Karsten Dambekalns over 9 years ago

  • Target version deleted (1230)

Also available in: Atom PDF