[TYPO3-german] Wenn Bild in Page Ressource, ansonsten Standard Grafik

Alexander Künzl a.kuenzl at ambranet.eu
Wed Mar 22 12:56:27 CET 2017


Hallo Marvin,

vielleicht hilft das hier (Fallbackbild ungetestet)

lib.bild = FILES
lib.bild {
   references {
    table = pages
     uid.data = page:uid
     fieldName = media
   }
   begin = 0
   maxItems = 1
    renderObj  = IMAGE
    renderObj {
   file.import.data = file:current:publicUrl
   altText.data = file:current:alternative
   titleText.data = file:current:title
     }
     stdWrap.ifEmpty.cObject = IMAGE
     stdWrap.ifEmpty.cObject.file = Dateipfad  Standardbild
   }

Viele Grüße

Alex


Am 22.03.2017 um 11:54 schrieb Marvin:
> Hallo zusammen,
>
> wie löse ich folgendes Typoscript (falls typoscript das überhaupt kann).
> Natürlich funktioniert das nicht, aber zur Veranschaulichung:
>
>
> lib.slideshow = COA
> lib.slideshow.10 = CONTENT
> lib.slideshow.10 {
> table = tt_content
> select {
>  where = uid = 1
> }
> if.isTrue.10.empty
> if.isTrue.10.file {
>    import.data = levelmedia:-1, slide
>    treatIdAsReference = 1
>    import.listNum = 0
>    params = class="responsive-img"
>  }
> }
>
> _______________________________________________
> 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