[TYPO3-mvc] Fluid: Own Condition ViewHelper

Oliver Beck oli5188 at gmail.com
Tue Oct 29 13:47:05 CET 2013


Ok, problem solved! I named the php file lowercamelcased "myViewHelper.php"
instead of "MyViewHelper.php". Lowercased works with self-closing tags but
not with child nodes!

-----Ursprüngliche Nachricht-----
Von: typo3-project-typo3v4mvc-bounces at lists.typo3.org
[mailto:typo3-project-typo3v4mvc-bounces at lists.typo3.org] Im Auftrag von
Oliver Beck
Gesendet: Dienstag, 29. Oktober 2013 13:21
An: typo3-project-typo3v4mvc at lists.typo3.org
Betreff: [TYPO3-mvc] Fluid: Own Condition ViewHelper

Hi all

I'm writing a VH which should render the "then-child" if a condition met.
Now i test the VH in my fluid template:

<bn:myViewHelper someArgument="foo" otherArgument="bar"> <f:then></f:then>
<f:else></f:else> </bn:myViewHelper>

TYPO3 throws this error: Templating tags not properly nested

I'm really sure that the tags are properly nested... 

And this way it works: <bn:myViewHelper someArgument="foo"
otherArgument="bar" />

But I would use the child-tags...

Has anyone an idea?

Kind regards, Oliver
_______________________________________________
TYPO3-project-typo3v4mvc mailing list
TYPO3-project-typo3v4mvc at lists.typo3.org
http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-project-typo3v4mvc



More information about the TYPO3-project-typo3v4mvc mailing list