Bug #19762

Traversing back page records used in CONTENT object does not work on root page

Added by Oliver Hader almost 11 years ago. Updated almost 10 years ago.

Status:
Closed
Priority:
Should have
Assignee:
Category:
Communication
Target version:
-
Start date:
2009-01-03
Due date:
% Done:

0%

TYPO3 Version:
4.2
PHP Version:
5.2
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

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.

(issue imported from #M10050)

00010050.patch View (2.29 KB) Administrator Admin, 2009-01-03 18:22


Related issues

Related to TYPO3 Core - Bug #20412: CONTENT can't select records from rootpage Closed 2009-05-09
Related to TYPO3 Core - Bug #21217: Sitemap: Recently updated pages broken Closed 2009-10-09
Related to TYPO3 Core - Bug #21358: Content Element Sitemap renders empty Closed 2009-10-26
Related to TYPO3 Core - Bug #31209: CONTENT still can't select records from rootpage Closed 2011-10-24

History

#1 Updated by Oliver Hader almost 11 years ago

Forgot to mention another flaw:
Using select.pidInList for this approach on the table pages does not make sense at all. Especially and only for pages, uidInList should be used...

#2 Updated by Oliver Hader over 10 years ago

Committed to SVN Trunk (rev. 5389)

#3 Updated by Oliver Hader about 10 years ago

Reverted this bugfix in SVN Trunk (rev. 6146)

Also available in: Atom PDF