Zum Inhalt springen

Filelinks in TV

Erstellt am 26. September 2007 · Noch keine Antworten

Tags: Frage

cosmonoid ·

Hallo Gemeinde,

irgendwie komme ich nicht weiter. Ich möchte in einem FCE filelinks einsetzen. Zumindest bin ich mit folgender Konfiguration schon soweit das zumindest einer angezeigt wird:

<typoscript><![CDATA[
	10 = TEXT
	10.current=1
	10.filelink{
	        path = uploads/tx_templavoila/
	        target = _blank
	        icon = 1
		icon_link = 1
	} ]]></typoscript>

Sobald ich aber ein 2. File hinzufüge und diese kommasepariert in dem Feld stehen gibt es keine Ausgabe.

Hat jemand eine Idee wie ich eine Fileliste im FCE verwirklichen kann?

Ergänzung:

Eine Lösung habe ich jetzt gefunden:

<typoscript><![CDATA[
			10 = TEXT
			10.current=1
			10.split{
				token = ,
				cObjNum = 1
				1.current = 1
				1.filelink{
					path = uploads/tx_templavoila/
					target = _blank
					icon = 1
					icon_link = 1
					size = 1
					size.wrap =   (| Bytes)
				}
				1.wrap = <div>|</div>
				
			}
			10.wrap = <div class="filelinks filelinks_layout_">|</div>
			
               				 ]]></typoscript>

Allerdings bin ich damit nicht ganz glücklich, da jetzt der volle Dateiname als Link ausgegeben wird. Schöner fände ich es wenn ich das FCE-Feld an tt_content.uploads.20 übergeben könnte. Bisher sind jedoch alle Versuche gescheitert. Ich habe

10 < tt_content.uploads.20
10.fileList.field = field_file
10.fileList.path = uploads/tx_templavoila

und

10 < tt_content.uploads.20
10.fileList.field.current = 1
10.fileList.path = uploads/tx_templavoila

und

10 < tt_content.uploads.20
10.fileList.current = 1
10.fileList.path = uploads/tx_templavoila

ausprobiert, jedoch wird das FCE Feld nicht an tt_content.uploads.20 übergeben. Hat dazu jemand ne Idee?

Grüße,
cosmonoid