[Typo3] link target for individual extension like sp_directory

"Bodo Eichstädt [T3C]" be at typo3cluster.com
Wed Jul 20 14:12:42 CEST 2005


tapio schrieb:
> Hi
> 
> Is there a generic constant for setting link target for some links, 
> which plugings generate even if the plugin has not constant in the 
> contant.txt file.
> 
> I would need for sp_directory for ther field 'www' a link target.
> 
> I have tried one solution in the source code.
> I makes links using this function
> 
>          function makeHTTPLink($url,$name)      {
>                  $this->typolink_conf["parameter"] = $url;
>                  #$this->typolink_conf["target."] = "_blank";
>          #$this->conf['target.']="_blank";
>                  $code = $this->cObj->typolink($name, $this->typolink_conf);
> 
>      return $code;
>          }
> 
> commented didnt't work.
> The function 'typolink' has been defined in a core file 
> (/tslib/class.tslib_content.php)


see:  tslib/class.tslib_pibase.php
function pi_linkToPage($str,$id,$target='',$urlParameters=array())

or see:
function getTypoLink($label,$params,$urlParameters=array(),$target='')
function getTypoLink_URL($params,$urlParameters=array(),$target='')

$params is a string!
Link parameter; eg. "123" for page id, "kasper at typo3.com" for email 
address, "http://...." for URL, "fileadmin/blabla.txt" for file.

Bodo
-- 
========> Typo3Cluster Ltd. & Co. KG <==================
Schlossallee 26d             Tel   +49 700 02478828
D-13156 Berlin               Fax   +49 700 02478828
http://www.typo3cluster.com  eMail info at typo3cluster.com



More information about the TYPO3-english mailing list