[TYPO3-core] RFC Bug #10050: Traversing back page records used in CONTENT object does not work on root page

Oliver Hader oliver at typo3.org
Tue May 5 22:27:13 CEST 2009


Hi Bernhard,

Bernhard Kraft schrieb:
> Oliver Hader wrote:
> 
>> Problem:
>> The TypoScript object CONTENT allows to traverse back the rootline until
>> something valid was found with the following:
>> 10 = CONTENT
>> 10 {
>>   table = pages
>>   select.where = media!=''
>>   slide = -1
>> }
>> This would select any page that has the media field filled.
>> However, this does not work if the record that is expected to be fetched
>> is on the root page and thus has the pid 0.
> 
> This is not quite correct. the "slide" features is used for traversing back
> the rootline, until some records (tt_content) are found on a page.
> 
> You want to traverse back the table "pages" until some value for the
> "pages"
> record is valid. This is (and was) already possible with an "prehistoric"
> feature of TYPO3 "levelmedia" or "leveluid" ... instead of your above TS
> use:
> 
> 10 = TEXT
> 10.data = levelmedia : -1 , slide

[...]

Thanks for your detailed information on this issue. A simple +1 would
have been enough. ;-)

olly
-- 
Oliver Hader
TYPO3 Release Manager 4.3


More information about the TYPO3-team-core mailing list