[Typo3-dev] TypoScript - Conditions / IF

Brian Slezak Brian.Slezak at cor.org
Sun Jul 17 01:22:04 CEST 2005


Hey all, trying this post on the dev list.

Hoping that someone can help me find a solution to this.  What I want to do is determine if a page has content in the border column.  If yes, use border column content, if no, use predefined content.

pseudoTS

[if styles.content.getBorder not Empty]
  page.20 < styles.content.getBorder
[else]
  page.20 = RECORDS
  page.20.tables = tt_content
  page.20.source = 1234
[end]

The above is using conditional statements, and I realize this is not the way I'll actually accomplish this, but it was easier to express what I wanted. ;)

It would seem to me that TypoScript would be the best place to accomplish this in, rather than design a custom cObject or other PHP script, but that's the direction I need to find.

Thanks all.

------
Brian Slezak





More information about the TYPO3-dev mailing list