Zum Inhalt springen

Umlaute in renderObj string: Dateien werden nicht gefunden

Erstellt am 30. November 2014 · Noch keine Antworten

Tags: Bilder, TYPO3 6.x, Frage

n3s ·

Ich habe ein script, welches mir ein img-Tag mit data-attributen generiert (für responsive images). Das funktioniert auch eigentlich Prima, nur wenn die Dateien oder Pfade Umlaute enthalten, wird nichts ausgegeben.

Wie kann ich das Script so anpassen, dass Umlaute keine Probleme bereiten?

temp.thumbnailsSlideshow = COA
temp.thumbnailsSlideshow {
    10 = CONTENT
    10 {
        table = tt_content
        select {
          where = colPos = {$slideShowSourceColPos}
        } 
        renderObj = COA
        renderObj {
          10 = FILES
          10 {
            references {
              table = tt_content
              uid.data = field:uid
              fieldName = image
            } 
            renderObj = COA
            renderObj {
              10 = LOAD_REGISTER
              10 {
                savedString.cObject = TEXT
                savedString.cObject.data = field:image
              }
            }
          }
        }
    }
 
    20 = TEXT
    20 {
      data = register:savedString
      split {
        token = ,
        max = 0
        cObjNum = 1
 
        1 { 
          20 = LOAD_REGISTER
          20 {
            imageLink.cObject = TEXT
            imageLink.cObject.current = 1
            imageLink.cObject.substring = 6,1000
          }
          30 = IMAGE
          30 {
            altText = 
            layoutKey = data
            file.import.data = register:imageLink
            file.width = {$thumbnailMaxW}
            wrap = <li>|</li>

            layout {
              data {
                 element = <img src="###SRC###" ###SOURCECOLLECTION### ###PARAMS### ###ALTPARAMS### ###SELFCLOSINGTAGSLASH###>
                 source.noTrimWrap = | data-###DATAKEY###="###SRC###"|
              }
            }
            sourceCollection {
              HD {
                width = 1920
                dataKey = hd
              }
              HalfHD {
                width = 960
                dataKey = half_hd
              }  
              SD {
                width = 720
                dataKey = sd
              }  
              Phone {
                width = 480
                dataKey = phone
              }                                      
              thumb {
                 width = 200
                 dataKey = thumbnail
              }
            }
          }

        }
      }
      wrap = <ul>|</ul>
    } 
}