Bug #19762
Traversing back page records used in CONTENT object does not work on root page
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)
Related issues
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)