[TYPO3-templavoila] conditions in DS
Marco Peemöller
listen at goto-marco.de
Wed Jan 23 18:30:49 CET 2008
Klaus Fumy schrieb:
> Hello List,
>
> am I allowed to use a condition in the typoscript part of my DS.
>
> I am asking, because I want to show / hide Content Elements depending on
> the IP.
>
> I tried the following, but didn´t succeed:
>
Try this in your main TS-Setup:
[IP = 134.60.*.*] && [globalVar = TSFE:id = 134]
lib.field_content = COA
lib.field_content {
10 = RECORDS
10.source.current=1
10.tables = tt_content
10.wrap = <!--TYPO3SEARCH_begin--> | <!--TYPO3SEARCH_end-->
}
[Else]
lib.field_content = COA
lib.field_content {
10 = TEXT
10.value = You are not allowed to view the content
}
[global]
Then in your DS:
<TypoScript><![CDATA[
10 < lib.field_content
]]></TypoScript>
regrads,
Marco
More information about the TYPO3-project-templavoila
mailing list