Bug #5069
Fluid Viewhelper link.email misses universal tag attributes
Start date:
2009-10-21
Due date:
% Done:
100%
Estimated time:
Has patch:
Description
The EmailViewHelper misses the initialization of the universal tag attributes. Due to this class and misc other tag attributes doesn't work with this viewhelper and an exception gets thrown instead.
This patch adds a call to initialize the universal tag attributes:
--- /var/www/_websites/faa/typo3/sysext/fluid/Classes/ViewHelpers/Link/EmailViewHelper.php 2009-10-01 20:31:08.000000000 +0200 +++ EmailViewHelper.php 2009-10-21 14:33:43.000000000 +0200 @@ -51,6 +51,15 @@ */ protected $tagName = 'a'; + /** + * Arguments initialization + * + * @return void + */ + public function initializeArguments() { + $this->registerUniversalTagAttributes(); + } + /** * @param string $email The email address to be turned into a link. * @return string Rendered email link
Files
Related issues
Updated by Bastian Waidelich over 12 years ago
- Project changed from 534 to TYPO3.Fluid
- Category deleted (
432)
Updated by Bastian Waidelich over 12 years ago
- File 5069.patch 5069.patch added
- Category set to ViewHelpers
- Status changed from New to Accepted
- Assignee set to Bastian Waidelich
- Branch set to v4 + v5
I'll take care of this.
Until then, you can write
<f:link.email email="foo@bar.tld" additionalAttributes="{name: 'foo', onclick: 'bar'}" />
Updated by Bastian Waidelich over 12 years ago
- Status changed from Accepted to Resolved
- % Done changed from 0 to 100
Applied in changeset r3335.