Bug #5069

Fluid Viewhelper link.email misses universal tag attributes

Added by Morton Jonuschat over 12 years ago. Updated over 11 years ago.

Status:
Resolved
Priority:
Must have
Category:
ViewHelpers
Target version:
-
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

5069.patch (1.1 KB) 5069.patch Bastian Waidelich, 2009-10-21 17:46

Related issues

Has duplicate TYPO3.Fluid - Bug #5075: Fluid Viewhelper link.email misses universal tag attributesRejected2009-10-21

Actions
#1

Updated by Bastian Waidelich over 12 years ago

  • Project changed from 534 to TYPO3.Fluid
  • Category deleted (432)
#2

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'}" />

#3

Updated by Bastian Waidelich over 12 years ago

  • Status changed from Accepted to Resolved
  • % Done changed from 0 to 100

Applied in changeset r3335.

Also available in: Atom PDF