Zum Inhalt springen

FCE: weiteres Feld an title anhängen

Erstellt am 6. Juli 2009 · 1 Antwort · letzte Antwort am 7. Juli 2009

Tags: Frage

ph.​bundschuh ·

Hallo zusammen,

ich habe ein FCE mit folgende lokalem XML:

<TypoScript>
						10 = IMAGE
						10.imageLightbox2 = 1
						10.file.imageLightbox2maxW = 800
						10.file.imageLightbox2maxH = 600
						10.alttext.field = field_name_left
						10.file {
							XY = 147,96
							format = jpg
							import = uploads/tx_templavoila/
							import.current = 1
							import.listNum = 0
							maxW = 147
							maxH = 96
						}
				    10.stdWrap.typolink {
				    	title.field = field_name_left
        			parameter.cObject = IMG_RESOURCE
        			parameter.cObject.file {
            		import = uploads/tx_templavoila/
            		import.current = 1
            		import.listNum = 0	
        			}
        			parameter.cObject.file.maxW = 600
        			parameter.cObject.file.maxH = 600
        			ATagParams = rel="lightbox[crew]"
        		}
    		</TypoScript>

Die Zeile mit

title.field = field_name_left

legt den Titel des Bildes fest. Dieser wird dann in der Imagelightbox angezeigt. "field_name_left" ist ein Feld des FCE.

Jetzt habe ich aber ein weiteres Feld "field_function_left", das ich ebenfalls im Bildtitel haben will.
Wie kann ich den Wert von field_funktion_left an title.field "anhängen"?

Schonmal vielen dank im Voraus.

Philipp

froemken ·

https://docs.typo3.org/m/typo3/reference-typoscript/main/en-us/Functions/Index.html

.title ist vom Typ stdWrap. Also kannst du da auch ein COA-Objekt rein klatschen:

10.stdWrap.typolink {
  title.field = field_name_left
  title.cObject = COA
  title.10 = TEXT
  title.10.field = field_name_left
  title.20 = TEXT
  title.20.field = field_function_left
  title.20.wrap = &nbsp;|
  parameter.cObject = IMG_RESOURCE
  parameter.cObject.file {
    import = uploads/tx_templavoila/
    import.current = 1
    import.listNum = 0 
  }
}

not tested...aber die Richtung sollte richtig sein...

froemken