[TYPO3-german] Content-Element nicht anzeigen, wenn Layout = 1
d.ros
projects at r-system.de
Mon Oct 7 09:57:43 CEST 2013
Am 07.10.2013 09:13, schrieb Stephan Grass:
> Hi,
>
> ich möchte Content-Elemente nicht anzeigen wenn sie ein bestimmten Wert
> im Feld layout haben.
> Ich gebe die momentan so aus:
>
> lib.maincontent = COA
> lib.maincontent {
> 10 = RECORDS
> 10 {
> source.current = 1
> tables = tt_content
> wrap = <!--TYPO3SEARCH_begin--> | <!--TYPO3SEARCH_end-->
> }
> }
>
> Nun möchte ich da irgendwie eine if-Abfrage über das Feld layout rein
> bekommen. Habe schon einiges an Try and Error gemacht, aber es fehlt mir
> der Zugang.
> Hat einer ne Idee?
>
> Stephan
>
Conditions sind Dein Freund
http://docs.typo3.org/typo3cms/TyposcriptReference/Conditions/Reference/Index.html
Also sowas in der Art:
lib.maincontent = COA
lib.maincontent {
10 = RECORDS
10 {
source.current = 1
tables = tt_content
wrap = <!--TYPO3SEARCH_begin--> | <!--TYPO3SEARCH_end-->
}
}
[page|layout = 1]
lib.maincontent >
[global]
Nun wird lib.maincontent bei Layout 1 nicht mehr ausgegeben.
Grüße
David
More information about the TYPO3-german
mailing list