[TYPO3] url encoding typolinks

Andrew Davis andrew at avagraphique.com
Fri May 25 06:47:28 CEST 2007


what if i wanted to create a text co that was a but of html i would 
insert, instead of straight text?

temp.tafatag = TEXT
temp.tafatag.data = page:pid
temp.tafatag.wrap = <a 
href="{$abs_path}tell-a-friend/?tipUrl={$abs_path}/?id=|"><img 
src="fileadmin/template/images/taf.gif" width="197" height="79" 
alt="Tell A Friend" border="0" /></a>
temp.tafatag.stdWrap.rawUrlEncode = 1
page.10.marks.TAF < temp.tafatag


this works except the "/" marks arent url encoded, and realurl then 
throws a hissy fit.

i think my line
temp.tafatag.stdWrap.rawUrlEncode = 1
is incorrect, any suggestions...

thanks in advance
andrew davis


Syed S. Rahman wrote:
> Peter Klein wrote:
>>> You mean I'll have to write a php function and pass the link as a 
>>> param to the php func? So nothing possible via TypoScript?
>>>
>>
>> You didn't say anything about typoscript in your initial post.. But in 
>> TS you can do something like this..
>>
>> 10 = TEXT
>> 10.value = Click Me
>> 10.typolink.parameter = 12
>> 10.typolink.parameter.rawUrlEncode = 1
>>
>> See TSREF for more info
>> http://typo3.org/documentation/document-library/references/doc_core_tsref/current/view/5/1/ 
>>
>>
>> -- 
>> Peter Klein / Umloud Untd
>>
>>
> 
> Hi all,
> 
> I was a bit confused regarding this after a client request. He told me 
> that his Typo3 website has typoscript generated links which aren't url 
> encoded so I was in doubt so I wanted to do my homework before any 
> serious implementation. Now I'm going to enjoy this week's podcast. Have 
> fun.
> 
> Warm Regards to everyone. Merry Christmas.
> 


More information about the TYPO3-english mailing list