[TYPO3-dev] typoLink() further tuning

Franz Koch typo.removeformessage at fx-graefix.de
Wed Jul 1 09:29:01 CEST 2009


Hi Vladimir,

> I propose to add keyword "self" to produce links to same page.
> 
> Benefits:
> 1) saves time on parsing and retrieving getText's TSFE:id
> 2) "self" keyword allows us to refactor typoLink() function in such way 
> that these links are not going through some checks like checking if the 
> page exists and is accessible (because it is the page being rendered 
> yet) it saves some function calls and processing here.
> 
> So with "self" some processing into typolinks can be skipped and 
> considering that page can contains tens or hundreds links it will 
> increase overall performance. Also it looks more neat ;)
> typolink.parameter = self   vs.   typolink.parameter.data = TSFE:id

sounds good to me. Looking forward to this.

-- 
kind regards,
Franz Koch

---------------------------------------------------
PayPal-Account: 'paypal _at_ elements-net _dot_ de'
---------------------------------------------------




More information about the TYPO3-dev mailing list