[TYPO3-dev] link function for all types

Bas van der Togt bas.vander.togt at efocus.nl
Fri Jan 16 11:42:28 CET 2009


Hello list,

I was wondering if there's a php function which handles all different 
type of links.

This is my TCA:
"url" => Array (		
	"exclude" => 1,		
	"label" => "label",		
	"config" => Array (
		"type"     => "input",
		"size"     => "15",
		"max"      => "255",
		"checkbox" => "",
		"eval"     => "trim",
		"wizards"  => array(
			"_PADDING" => 2,
			"link"     => array(
				"type"         => "popup",
				"title"        => "Link",
				"icon"         => "link_popup.gif",
				"script"       => "browse_links.php?mode=wizard",
				"JSopenParams" => "height=300,width=500,status=0,menubar=0,scrollbars=1"
			)
		)
	)
),

In php i use the function $this->pi_getPageLink($rw['url'],'',array())
But this function works only with uid's en not with external urls for 
example.

Any idea?

Best regards,
Bas




More information about the TYPO3-dev mailing list