[TYPO3-german] Fluid If-ViewHelper - Condition mit AND Verknüpfung

Johannes C. Laxander jc at laxander.com
Mon Sep 19 11:09:09 CEST 2016


Hallo Bernd, Dieter und Stefan,

danke für Eure Antworten. Mein Resümee: Es geht wohl so (noch) nicht, wie ich mir das dachte. Ich hatte so was im Kopf und hatte es deshalb versucht.
Und auch auf https://docs.typo3.org/typo3cms/ExtbaseGuide/Fluid/ViewHelper/If.html fand ich dies (value1=1 value5=5):

  <f:if condition="{0:value1,1:value5}=={0:1,1:5}">
    <p>Values in the first array are all the same as the values in the second array.</p>
  </f:if>

Aber diese Doku ist "latest". Und so könnte Stefan recht haben, dass es erst ab v8 funktioniert.

Also werde ich Bernds Vorschlag mit der geschachtelte Variante nehmen.

Gruß, Johannes.

> -----Ursprüngliche Nachricht-----
> Von: typo3-german-bounces at lists.typo3.org [mailto:typo3-german-
> bounces at lists.typo3.org] Im Auftrag von Bernd Wilke
> Gesendet: Montag, 19. September 2016 09:38
> An: typo3-german at lists.typo3.org
> Betreff: Re: [TYPO3-german] Fluid If-ViewHelper - Condition mit AND
> Verknüpfung
> 
> warum nicht einfach zwei geschachtelte einfache Conditions?
> <f:if condition="{var1}"><f:if condition="{var2}">{var1} - {var2}</f:if></f:if>
> 
> da ich hier übers forum poste weiß ich nciht wie das mit den tags funktioniert
> (ich sehe die tags in den originalpostings nicht) also mal mit falschen
> klammern:
> (f:if condition="{var1}")(f:if condition="{var2}"){var1} - {var2}(/f:if)(/f:if)
> 
> bernd
> 
> --
> ------------------------------------------
> http://pi-phi.de/cheatsheet.html
> _______________________________________________
> TYPO3-german mailing list
> TYPO3-german at lists.typo3.org
> http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-german



More information about the TYPO3-german mailing list