[TYPO3-dev] typoLink() further tuning

JoH asenau info at cybercraft.de
Thu Jul 2 13:00:51 CEST 2009


>>>>> What's wrong with
>>>>> typolink.parameter = #
>>>> contrary to self or this, # is not selfexplainatory
>>>
>>> I'd say it's reasonably self-explanatory in the context of anchors
>>> or links in HTML. No objections to a synonym being made available,
>>> but # is pretty basic...
>>>
>>
>> Well, at least it should be documented first ;)
>> from tsref:
>>
>>  > Now the input can be an alias or page-id. If the input is an
>>  integer > it's a page-id, if it's two comma separated integers,
>>  it's a id/type > pair, else it's an alias. For page-id's or aliases
>>  you can prepend a > "#" mark with a number indication tt_content
>>  record number on the page > to jump to! (if .section-property is
>> present, it overrides this).
>>
>>  > If you insert only "#234" where "234" is the tt_content record
>> number, > it links to the current page-id
>>
>> so it is undocumented hidden feature and devs should better rely on
>> TSFE:id as nobody promise them that # would links to current page :)
>>
> It's more like a bug than a feature..

Well - it's exactly the same behaviour everybody should know from HTML.
<a href="#" onclick="someJavaScript();">Whatever</a>
So I wouldn't call it a bug, since it it does what I would have expected it
to do.

Maybe someone can update TSref and add the necessary information.

Cheers

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