[TYPO3-dev] How to disable page-content with typoscript?

Franz Koch typo.removeformessage at fx-graefix.de
Sun Jul 12 13:34:03 CEST 2009


Hi,
> I have the following use-case:
> 
> One one page within TYPO3, I have first a normal textbox and as second a 
> plugin.
> 
> The plugin displays at first a listing with clickable items.
> 
> Now I want to archive, that as soon as one of the items is clicked 
> (still on the same page), the textbox disappears.
> 
> What I know so far, is that I simple create an extension-template within 
> this page and that
> I can determine, if an item is clicked with the typoscript-conditions.
> 
> But how should the typoscript-code looks to disable/hide the textbox?
> 
> BTW: I don't use TV or automaketemplate!

if the number of content elements is fixed on that page (only those two) 
it's quite easy:

-------------
[condition=matched]
page.10.subparts {
	CONTENT >
	CONTENT = RECORDS
	CONTENT {
		# place here the uid of the plugin content elment
		source = 123
		table = tt_content
	}
}
[global]
-------------

if the number of content elements is flexible and you only like to 
remove the first element and keep all others it's a bit more tricky. If 
so, drop a note.

-- 
kind regards,
Franz Koch

---------------------------------------------------
PayPal-Account: 'paypal _at_ elements-net _dot_ de'
---------------------------------------------------




More information about the TYPO3-dev mailing list