[TYPO3-dev] typoLink() further tuning

JoH asenau info at cybercraft.de
Wed Jul 1 17:27:55 CEST 2009


>>>>> typolink.parameter = self   vs.   typolink.parameter.data =
>>>>> TSFE:id
>>>> What's wrong with
>>>> typolink.parameter = #
>>>> that is already linking to the current page?
>>> '#' could also be used. More essential to the idea is that it can be
>>> rendered with less effort (a lot of processing is not needed
>>> anymore). So, whether it's "self", "this" or "#", the speed
>>> improvement is the essence of the idea.
>>
>> It's not just an idea but the current behaviour of the typolink
>> function in TYPO3 4.2.6:
>>
>> typolink.parameter = 123#456
>> will link to element 456 on page 123
>>
>> typolink.parameter = #456
>> will link to element 456 on the current page
>>
>> typolink.parameter = #
>> will link to the current page
>>
>> so nothing new to introduce since the speed improvement is already
>> there :-)
>
> What does this prove? The point was that the typolink code should not
> make any checks or other processings if linking to the same page. Your
> just stating that it doesn't need a "this" or "self" keyword to do it.

No - the original idea was to get rid of
typolink.parameter.data = TSFE:id
if one wants to link to the same page and introduce
typolink.parameter = self
instead to avoid the additional getText stdWrap function call.

So I just pointed out that this is already done when using
typolink.parameter = #

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
Twitter: http://twitter.com/bunnyfield
TYPO3 cookbook (2nd edition): http://www.typo3experts.com
TYPO3 workshops: http://workshops.eqony.com






More information about the TYPO3-dev mailing list