[TYPO3-english] tt_news link to external url

Philipp Gampe phil at philippgampe.info
Wed Feb 10 18:23:58 CET 2010


Hello list,

using tt_news (latest),
if I select external url (type=2) then I can use normal TYPO3 link wizard  
to generate link

this works fine in list and single view, but fails in list view if you  
enter e.g. a file reference or an email address ...

the problem lies in this line
$exturl = trim(strpos($row['ext_url'], 'http://') !== FALSE ?  
$row['ext_url'] : 'http://' . $row['ext_url']);

 from pi/class.tx_ttnews.php line 1049

the problem is that the link is not rendered with typolink, but just  
outputted just with a http:// in front of it
this leads to links like http://fileadmin/... or http://mail@box.de

I tried a little myself, but I don't know enough to make the necessarily  
change myself :(

Can somebody provide a snippet which makes this work? I know some of you  
can write stuff like this out of the box :)


Thanks in advance
Phil

btw. this is related to http://bugs.typo3.org/view.php?id=9114


More information about the TYPO3-english mailing list