[TYPO3-german] Linkangaben aus Flexform (= Strings getrennt durch Leerzeichen) in PHP als A-Tag umwandeln?

JoH asenau info at cybercraft.de
Mon Apr 6 11:01:41 CEST 2009


>> in deiner extension würde das dann ungefähr so aus sehen:
>>
>> $para = "ww.google.de _blank - This is a Google Link"
>>
>> $conf = array('parameter'=> $para);
>>
>> $this->cObj->typLink('www.google.de',$conf);
>>
>
> danke, das wars was ich gesucht hatte.

Und für das title Attribut packst Du in das $conf-Array neben 'parameter'
noch 'ATagParams' (siehe dazu den Link den ich bereits gepostet habe) - alle
weiteren Parameter, die Du in der TSref findest, kannst Du dann ebenso
übergeben:

$para = "ww.google.de _blank - This is a Google Link"
$conf = array('parameter'=> $para);
$conf['ATagParams'] = 'Ein Titel';

oder auch

$conf['ATagParams.']['field] = 'title';
                                ^^^^
Wichtig ist der Punkt an dieser Stelle.

Im Prinzip also immer eine Umsetzung der TS-Eigenschaften in Form eines
Arrays.

HTH

Joey

-- 
Wenn man keine Ahnung hat: Einfach mal Fresse halten!
(If you have no clues: simply shut your gob sometimes!)
Dieter Nuhr, German comedian
Xing: http://contact.cybercraft.de
TYPO3 cookbook (2nd edition): http://www.typo3experts.com
TYPO3 workshops: http://workshops.eqony.com




More information about the TYPO3-german mailing list