Project

General

Profile

Actions

Bug #16471

closed

Selection of Table-Fields does not work in TS

Added by Noel Bossart over 18 years ago. Updated about 13 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2006-08-15
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
4.0
PHP Version:
Tags:
Complexity:
Is Regression:
Sprint Focus:

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)

Actions #1

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

Actions #2

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

Actions #3

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.

Actions

Also available in: Atom PDF