[TYPO3-templavoila] conditions in DS

Klaus Fumy klaus.fumy at uni-ulm.de
Tue Jan 22 11:20:05 CET 2008


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:

<field_content type="array">
				<tx_templavoila type="array">
					<title>Inhaltsspalte</title>
					<sample_data type="array">
						<numIndex index="0"></numIndex>
					</sample_data>
					<eType>ce</eType>
					<tags>div</tags>
					<TypoScript><![CDATA[
	[IP = 134.60.*.*] && [globalVar = TSFE:id = 134]
	10= RECORDS
	10.source.current=1
	10.tables = tt_content
	10.wrap = <!--TYPO3SEARCH_begin--> | <!--TYPO3SEARCH_end-->
	[Else]
	10 = TEXT
	10.value = You are not allowed to view the content
	[global]
	
                     ]]></TypoScript>
					<oldStyleColumnNumber type="integer">2</oldStyleColumnNumber>
				</tx_templavoila>
				<TCEforms type="array">
					<config type="array">
						<type>group</type>
						<internal_type>db</internal_type>
						<allowed>tt_content</allowed>
						<size>5</size>
						<maxitems>200</maxitems>
						<minitems>0</minitems>
						<multiple>1</multiple>
						<show_thumbs>1</show_thumbs>
					</config>
					<label>Inhaltsspalte</label>
				</TCEforms>
			</field_content>

2. Question:

May I use in a typoscript condition the != operator? (Could´nt find it 
in the reference)

Thank you for answers.
Greetings
klaus


More information about the TYPO3-project-templavoila mailing list