[TYPO3] Is it isTrue, isFalse or ifEmpty? And how to wrap a searchbox.

Daniel Doesburg daniel at typo3-nl.eu
Thu Jun 29 08:51:07 CEST 2006


Hi list

I can't find the reason why this script never gives the version with 
<div id="content-wide"> and always gives a <div id="right">.

If I'm on page 8 the searchbox is shown nicely.
If there is some text in the right colomn, it is shown nicely.


But
if I'm not on page 8
and the nav-left is empty
and the colomn right is empty

why do I get this in lib.center

<div id="content"> --- some content --- </div>
<div id="nav-left"> --- menu-items --- </div>
<div id="right"></div>

I want to get in this case only

<div id="content-wide"> --- some content --- </div>
<div id="nav-left"> --- menu-items --- </div>

What can I do?

O, yes, by the way, what is the right wrap statement to wrap the 
searchbox in 1 line?


lib.right >
lib.right = COA

[globalVar = TSFE:id = 8]
lib.right.10 = COA
lib.right.10.10 = TEXT
lib.right.10.10.value = <div id="search">
lib.right.10.20 < lib.searchbox
lib.right.10.30 = TEXT
lib.right.10.30.value = </div>
[end]

lib.right {
	20 = COA
	20 {
		if.isTrue.numRows < styles.content.getRight
		10 < styles.content.getRight
		10.wrap = <div id="contentR"> | </div>
	}

	30 = COA
	30 {
		if.isTrue < lib.nav-right
		10 < lib.nav-right
		10.wrap = <div id="nav-right"> | </div>
	}
}

lib.center = COA
lib.center {
	10 = COA
	10 {
		if.isTrue < lib.right
		10 < styles.content.get
		10.wrap = <div id="content"> | </div>
	}

	20 = COA
	20 {
		if.isFalse < lib.right
		10 < styles.content.get
		10.wrap = <div id="content-wide"> | </div>
	}
	
	30 < lib.nav-left
	30.wrap = <div id="left"><div id="nav-left"> | </div></div>

	40 = COA
	40 {
		if.isTrue < lib.right
		10 < lib.right
		10.wrap = <div id="right"> | </div>
	}
}



Regards,

Daniel

-- 
Auto's hebben bumpers, potloden gummetjes, want mensen maken fouten



More information about the TYPO3-english mailing list