[TYPO3-core] RFC #16074: Add new API t3lib_befunc::helpTextArray and use it in the ExtDirect tooltips

Ernesto Baschny [cron IT] ernst at cron-it.de
Wed Oct 20 11:32:24 CEST 2010


Ernesto Baschny [cron IT] schrieb am 20.10.2010 10:53:
> Susanne Moog schrieb am 20.10.2010 10:26:
> 
>>> This is a SVN patch request.
>>>
>>> Type: Cosmetic / use API
>>>
>>> BT reference: http://bugs.typo3.org/view.php?id=16074
>>>
>>> Branches: trunk
>>>
>>> Problem:
>>> Currently the ExtDirect which fetches the tool-tip for CSH fetches the
>>> information on its own from the $TCA_DESCR array. It will also render
>>> "TYPO3 Inline Help" as a default header if none is given and will not
>>> render an "arrow" which used to symbolize a link to a pop-up in its content.
>>>
>>> This is a follow-up to #16059
>>>
>>>
>>> Solution:
>>> This patch adds a new API function t3lib_befunc::helpTextArray which is
>>> then used by t3lib_befunc::helpText and also the new ExtDirect call to
>>> fetch the information.
>>>
>>> The tool-tips now won't have a title anymore if there is no "alttitle"
>>> defined.
>>>
>>>
>>> How to test:
>>> Almost none CSH uses "alttile", so usually you won't see any. There are
>>> some examples in the Extension manager (e.g. the main titles "Loaded
>>> Extensions" etc).
>>
>> Just from reading:
>>
>> htmlspecialchars was replaced with strip_tags in Steffens version
>> because of the problem Helmut already posted (HTML in short texts).
>>
>> Did you add the arrow icon again? It's not really useful, you can click
>> on the text either way to get the popup window (and on the label) and
>> it's pretty ugly. Goal should rather be to have shortest possible help
>> texts and always additional information. (Not like at the moment where
>> you sometimes have 15 sentences long "short" helptexts...)
>>
>> Will test it in a minute.
> 
> After discussing with Susanne, I changed the patch a bit (attached v2):
> 
> The API function t3lib_befunc::helpTextArray now will return the
> information "raw". The ExtDirect will do a strip_tags() and the old
> helpText will do what it used to do (backwards compatible).
> 
> The "arrow" icon is now gone again, because currently *all* tooltips are
> linked with the popup, even if there is no more information in the
> popup. I think this needs to be changed in the future, because it is
> annoying to click and expect "more information" and then there is
> nothing new in the popup. This used to be the function of that "arrow"
> which was the link to the popup.
> 
> Steffen Gebert, could you file an issue in the HCI tracker so that they
> can decide how it should work?

Committed to trunk rev. 9183.

Cheers,
Ernesto


More information about the TYPO3-team-core mailing list