[TYPO3] How to add link to php switch in FE Extensionconfiguration

Toke Herkild th at concare.net
Tue Oct 24 13:43:05 CEST 2006


 
Peter wrote:

Don't know if I got your question right, but here's what I would do
(file: ext_tables.php):

$tempColumns = array(
"myname_switch"=> array(
"exclude" => 0,		
"label" => "my_label",
	"config" => Array (
	"type" => "select",
			"items" => Array (
				Array("switch.I.0", "First option"),
				Array("switch.I.2", "Second option")
		)
	)
	
	)
);



t3lib_div::loadTCA('tt_content');
t3lib_extMgm::addTCAcolumns("tt_content",$tempColumns,1);

cheers
Peter

Hi Peter,

Not exactly. What I need to do is like this:

In php::main($content, $conf){}
  
Switch ($CODE) {
  case "showall":
  break;
 
  case "showselected":
  break;
}

And in typo3 BE add the plugin CE I need a field/select where I can
define which case is to be used by the actual instance of the plugin.
_______________________________________________
TYPO3-english mailing list
TYPO3-english at lists.netfielders.de
http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-english



More information about the TYPO3-english mailing list