[Typo3] link target for individual extension like sp_directory

tapio tapio.markula at dnainternet.net
Wed Jul 20 15:15:09 CEST 2005


Bodo Eichstädt [T3C] wrote:
> 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='')

I found them but should I redefine them for sp_directory under the 
class, where the function makeHTTPLink(...) exists?



More information about the TYPO3-english mailing list