Bug #19762

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

Added by Oliver Hader over 6 years ago. Updated over 5 years ago.

Status:Closed Start date:2009-01-03
Priority:Should have Due date:
Assigned To:Oliver Hader % Done:

0%

Category:Communication Spent time: -
Target version:-
TYPO3 Version:4.2 Is Regression:
PHP Version:5.2 Sprint Focus:
Complexity:

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 Magnifier (2.3 kB) Administrator Admin, 2009-01-03 18:22


Related issues

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

History

#1 Updated by Oliver Hader over 6 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 about 6 years ago

Committed to SVN Trunk (rev. 5389)

#3 Updated by Oliver Hader almost 6 years ago

Reverted this bugfix in SVN Trunk (rev. 6146)

Also available in: Atom PDF