[TYPO3-core] RFC: Feature #8626: getText slide: register uid and level after slide hits

Ralf Hettinger ng at ralfhettinger.de
Thu Sep 3 19:24:05 CEST 2009


Am 03.09.2009 16:18 schrieb Steffen Ritter:
> Ralf Hettinger schrieb:
>> This is an SVN patch request.
>>
>> Type: New feature / code cleanup
>>
>> Bugtracker references:
>> http://bugs.typo3.org/view.php?id=8626
>>
>> Branches: trunk
>>
>> Problem:
>> With TYPOSCRIPT, there is no way to access the page or the rootline
>> level hit after a successful getText slide to the bottom of the rootline.
>>
>> Solution:
>> Two new register values
>> UID_FROM_LAST_PAGESLIDE_FOR_FIELD_[name of slided field]
>> LEVEL_FROM_LAST_PAGESLIDE_FOR_FIELD_[name of slided field]
>> which will be filled after each successful slide to the bottom of the
>> rootline (i.e. there has been a slide "hit") with the page uid and the
>> rootline level.
>>
>> Cheers,
>> Ralf
>>
> +1 one by reading.
> 
> Currently do not know an scenario where i should use this, but the
> feature nor "really hurts", takes performance or so.

I can provide those scenarios:

You add a new field (checkbox) to your table pages named
"bequeath_contents_to_subpages", which after activation shall trigger
all subpages to show some contents of this page.

You then configure the TS-template to slide the rootline and react on
this checkbox; and after you've found it, you are in need of the pid,
where it was set, to get the contents from it =>
... .data =
register:UID_FROM_LAST_PAGESLIDE_FOR_FIELD_bequeath_contents_to_subpages

Similar thing for
LEVEL_FROM_LAST_PAGESLIDE_FOR_FIELD_bequeath_contents_to_subpages
if you want to modify e.g. HMENUs entry points (entryLevel.data = ...)

There are certainly more :)


> But could you please change wording of the registers, to me they are to
> long and not handy enought
> 
> PAGESLIDE_UID_IN_[field]
> PAGESLIDE_LEVEL_IN_[field]
> 
> would do the job I think

I understand, but feel those names are not speaking enough, since they
don't really tell where they are derived from. Hm. No better idea at the
moment, will think about it...


...thanks for having a look :)

Cheers
Ralf


More information about the TYPO3-team-core mailing list