---
title: "Constants und Setup in TV-DataStructure"
url: "https://www.typo3.net/d/47114-constants-und-setup-in-tv-datastructure"
source: "typo3.net"
tags: ["Archiv","TemplaVoilà","Frage"]
created: "2006-07-26"
last_reply: "2006-07-27"
replies: 3
solved: false
page: 1
pages: 1
lang: "de"
---

# Constants und Setup in TV-DataStructure

Archiv › TemplaVoilà · 3 Antworten · gestartet 2006-07-26

## Eröffnungsbeitrag

**stoefln** · 2006-07-26 · [Beitrag #1](https://www.typo3.net/d/47114-constants-und-setup-in-tv-datastructure/1)

will in meinem TS-Template die Schriftgröße für alle TV-ContentElemente / TV-Seitentemplates definieren.
in meinen CEs hab ich jetzt versucht:

```html
...
<tx_templavoila>
	<typoscript>
	10 = IMAGE
	10.file = GIFBUILDER
	10.file {
	  XY = 200,20
	  backColor = #000000
	  10 = TEXT
	  10.text.current = 1
	  10.fontColor = #FFFFFF
	  10.fontFile =  fileadmin/fonts/lte50699.ttf
	  10.niceText = 0
	  10.offset = 15,14
	  10.fontSize = {$title3_fontsize}
	}
	</typoscript>
</tx_templavoila>
...
```

funktioniert aber nicht! hat wer eine idee wie ich das machen könnte?

## Antworten

### [#2](https://www.typo3.net/d/47114-constants-und-setup-in-tv-datastructure/2) · anj · 2006-07-26

Hi!

Du hast nur nur einen kleinen Fehler:

müsste so aussehen:

```typoscript
[...]
10 = TEXT
10.value.current = 1
[...]
```

Hier ist sonst noch ein Beispiel:

<http://www.pixelmotor.de/nc/developer/wiki/typo3/templavoila/keyword/Flexible%20Content%20Element#GIFBuilder>

### [#3](https://www.typo3.net/d/47114-constants-und-setup-in-tv-datastructure/3) · stoefln · 2006-07-26

nönö das funktioniert schon, textbild wird ja angezeigt nur die schriftgröße ändert sich nicht wenn ich den parameter title3_fontsize im TS config ändere... was nicht funktioniert ist also:

```typoscript
 10.fontSize = {$title3_fontsize}
```

### [#4](https://www.typo3.net/d/47114-constants-und-setup-in-tv-datastructure/4) · stoefln · 2006-07-27

also ich hab die lösung hier gefunden:
<http://typo3.org/documentation/document-library/extension-manuals/templavoila/0.4.0/view/1/5/>

in TS-Constants so definieren (optional):

```typoscript
title3_fontsize = 17
```

im TS-Setup so definieren:

```typoscript
plugin.tx_templavoila_pi1.TSconst.title3_fontsize={$title3_fontsize}
```

im DS vom FCE so den WErt auslesen:

```typoscript
10.fontSize = {$TSconst.title3_fontsize}
```

FUNKTIONIERT!!

---

Quelle: „Constants und Setup in TV-DataStructure“, typo3.net, https://www.typo3.net/d/47114-constants-und-setup-in-tv-datastructure
Beiträge von Mitgliedern des Forums. Bitte mit Link auf die Diskussion zitieren.
