[TYPO3-german] SELECT und JOIN in TypoScript eines CONTENT Objektes?
Patric Pesch
p.pesch at 11com7.de
Fri Dec 11 17:44:11 CET 2009
schrieb Florian A.:
> --- 8< ---
> select {
> selectFields = tt_content.uid, tt_content.pid, title, header
> join = pages ON (pages.pid = tt_content.pid)
> orderBy = tstamp DESC
> languageField = sys_language_uid
> ...
> }
> --- >8 ---
So wie ich es sehe, fehlt dir pidInList.
Einen innerJoin gibt es meines Wissens leider nicht.
Das ist nicht getestet, sollte aber funktionieren:
table = tt_content
select {
pidInList.cObject = HMENU
pidInList.cObject {
entryLevel = 0
1 = TMENU
1 {
expAll = 1
NO {
doNotLinkIt = 1
stdWrap.field = uid
stdWrap.wrap = | |*| ,| |*|
}
}
}
leftjoin = pages ON(pages.uid = tt_content.pid)
selectFields = tt_content.uid, tt_content.pid, title , header
}
More information about the TYPO3-german
mailing list