Feature #35748

Add generic data-* attribute

Added by Julian Wachholz over 3 years ago. Updated over 1 year ago.

Status:Resolved Start date:2012-04-06
Priority:Could have Due date:
Assigned To:Bastian Waidelich % Done:

100%

Category:ViewHelpers
Target version:-
Has patch:Yes

Description

All elements in HTML5 can have any number of data-* attributes.
This should be made easier to use than with the additionalAttributes property.

Example:

<f:link.action data="{loading-text: 'loading...'}" action="create">create a new foo</f:link.action>

Related issues

related to TYPO3.Fluid - Bug #38592: attributes with dashes lead to wrong exception message Resolved 2012-07-03
related to Core - Feature #61351: Add generic data-* attribute Resolved 2014-09-04
related to Core - Feature #61171: Add generic data-* attribute Closed 2014-08-25
duplicated by TYPO3.Fluid - Feature #49305: Support for Data Attributes in tag-based ViewHelpers Closed 2013-06-21

Associated revisions

Revision 8f7bd506
Added by Julian Wachholz over 1 year ago

[FEATURE] Add generic data-* attribute

All elements in HTML5 can have any number of data-* attributes.
This additional array attribute on tag bases viewhelpers makes
it easier to add several data-* attributes to them::

&lt;f:form.textfield data="{foo: 'bar', baz: 'foos'}" /&gt;

Will render::

&lt;input data-foo="bar" data-baz="foos" ...

Change-Id: I3187e9a8d2c97f0518893a633bc773bacb624ca5
Resolves: #35748
Releases: master

History

#1 Updated by Gerrit Code Review over 3 years ago

  • Status changed from New to Under Review

Patch set 1 for branch master has been pushed to the review server.
It is available at http://review.typo3.org/10184

#2 Updated by Gerrit Code Review about 3 years ago

Patch set 1 for branch master has been pushed to the review server.
It is available at http://review.typo3.org/11803

#3 Updated by Gerrit Code Review about 3 years ago

Patch set 2 for branch master has been pushed to the review server.
It is available at http://review.typo3.org/10184

#4 Updated by Bastian Waidelich over 1 year ago

  • Assigned To set to Bastian Waidelich

No feedback, taking over

#5 Updated by Gerrit Code Review over 1 year ago

Patch set 3 for branch master of project Packages/TYPO3.Fluid has been pushed to the review server.
It is available at https://review.typo3.org/10184

#6 Updated by Julian Wachholz over 1 year ago

  • Status changed from Under Review to Resolved

Also available in: Atom PDF