[TYPO3-dev] typoLink() further tuning
Vladimir Podkovanov
admin at sitesfactory.ru
Wed Jul 1 17:26:49 CEST 2009
JoH asenau wrote:
>>>> 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 :-)
>
> Cheers
>
> Joey
>
Hi Joey,
well, yes # could be used instead of TSFE:id, it is rather hidden
feature as it has purpose to link to sections and IMHO usually links are
using TSFE:id to refer to same page.
Anyway in typoLink() links with # are going through same checks as links
to other pages that is not needed in this case and could be skipped.
--
-rgds-
Vladimir
More information about the TYPO3-dev
mailing list