Bug #16471
closedSelection of Table-Fields does not work in TS
0%
Description
If you want to read a Field from a Table in the DB, it does just work, if the Target is a SUBPAGE of the calling Page. For example:
- Home < Works
- Projekts < don't work
- Team < don't work
- Location Finder <- targetUID
- USA < don't work
- Europe < don't work
If i want to display the title of the "Location Finder" Page in my Template, this works only on HOME, on every other Page it does not because "Location Finder" is not a Subpage of them. Not even on the Target-Page self:
lib.myObj = CONTENT
lib.myObj = {
table = pages
select.where = uid={$targetUID}
renderObj = TEXT
renderObj.field = title
wrap = <h2>|</h2>
}
I suppose it's not the way it should work?!
Workarount can't respect languages:
lib.myObj = RECORDS
lib.myObj {
source = {$targetUID}
tables = pages
conf.pages >
conf.pages = TEXT
conf.pages.field=title
wrap = <h2>|</h2>
}
Does not work in 4.0.1 too.
(issue imported from #M4046)
Updated by Thomas Hempel over 18 years ago
Hi Noel,
what is targetUID? Do you have configured this in the constants? Or where does it come from?
Greets,
Thomas
Updated by Noel Bossart over 18 years ago
Hy Thomas,
targetUID is the UID from the page, where the title should be taken. This is configured in the constants.
The scripts does work - under some circumstances - but not allways. Therefor, it's nothing wrong with the spelling or so I think...
Field's can't be read, when the target UID is not a subpage.
Greets,
Noel
Updated by Andreas Wolf about 13 years ago
- Status changed from New to Closed
- Target version deleted (
0) - PHP Version deleted (
4)
Yes, that's intendend behaviour: CONTENT only selects content from a page - by default the current page. You can change that by setting select.pidInList
to the pid(s) of the pages where your content resides.
Closing this as it is no bug.