[TYPO3-dev] Remove the header of a plugin from within the plugin

David Bruchmann typo3-dev at bruchmann-web.de
Fri Oct 23 14:49:39 CEST 2009


----- Ursprüngliche Nachricht -----
Von:        Bernhard Kraft <kraftb at kraftb.at>
Gesendet:   Mittwoch, 21. Oktober 2009 22:20:29
An:         typo3-dev at lists.typo3.org
CC:
Betreff:    Re: [TYPO3-dev] Remove the header of a plugin from within 
the plugin
> David Bruchmann schrieb:
> 
>> I'd like being enlighted referring this case and appreciate your tip.
>> Id like to deactivate the header for a special plugin depending just on
>> prefixId. If you have examples with other parameters, selects or
>> sub-CASE it would be nice too but I don't need it in the moment.
> 
> 
> --------------------------------------------------------
> 	# Disable default header
> tt_content.list.10 >
> 
> 	# Add "CASE" statement, with header except for listed elements
> tt_content.list.10 = CASE
> tt_content.list.10 {
> 		# Depending on the type of plugin
> 	key.field = list_type
> 
> 		# Usually just render the default stdHeader
> 	default = < lib.stdheader
> 
> 		# Do nothing (empty "TEXT" object) for "my_plugin_pi1" 		
> 		# and "kb_plugin_pi1". Both wont get a header rendered
> 	my_plugin_pi1 = TEXT
> 	kb_plugin_pi1 = TEXT
> }
> --------------------------------------------------------
> 
> 
> greets,
> Bernhard

Hey Cool,

is a bit tricky with the default-value :-)

Thanks a lot
David




More information about the TYPO3-dev mailing list