Task #59712

Improve userFunc in HtmlParser

Added by Alexander Stehlik almost 6 years ago. Updated over 1 year ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Content Rendering
Target version:
-
Start date:
2014-06-20
Due date:
% Done:

100%

TYPO3 Version:
6.2
PHP Version:
Tags:
Complexity:
easy
Sprint Focus:

Description

Currently the userFunc that can be configured for attributes in the HtmlParser only accepts the function name but no additional parameters:

For example

fixAttrib.[attribute].userFunc.myparam = test1

will not be passed to the user function. This would be quite useful :)

Associated revisions

Revision abac3032 (diff)
Added by Alexander Stehlik over 5 years ago

[FEATURE] Additional params for HtmlParser attribute userFunc

Sub parameters passed to the HtmlParser tag configuration like:

fixAttrib.[attribute].userFunc.myparam = test1

will be passed to the configured user function in an array. The
attribute value will be stored in the attributeValue array key.

To keep backward compatibility the attribute value will be passed as
string to the user function when no additional attributes exist.

Releases: master
Resolves: #59712
Change-Id: Ib073dad0759fa2b20a82bf976f8d04f39d9135f0
Reviewed-on: http://review.typo3.org/30935
Reviewed-by: Anja Leichsenring <>
Tested-by: Anja Leichsenring <>
Reviewed-by: Christian Kuhn <>
Tested-by: Christian Kuhn <>

History

#1 Updated by Gerrit Code Review almost 6 years ago

  • Status changed from New to Under Review

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

#2 Updated by Gerrit Code Review over 5 years ago

Patch set 2 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/30935

#3 Updated by Gerrit Code Review over 5 years ago

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

#4 Updated by Gerrit Code Review over 5 years ago

Patch set 4 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/30935

#5 Updated by Gerrit Code Review over 5 years ago

Patch set 5 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/30935

#6 Updated by Gerrit Code Review over 5 years ago

Patch set 6 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/30935

#7 Updated by Alexander Stehlik over 5 years ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100

#8 Updated by Benni Mack over 1 year ago

  • Status changed from Resolved to Closed

Also available in: Atom PDF