Wolfgang Wagner Matthew Colton Im Forntend war es so, dass Inhalte die auf der Root-Seite liegen ausgegeben wurden, jedoch ohne die ID im HTML-DOM. Auf einfachen Seiten (z.B. Impressum) wurden außerdem keine Inhalte ausgegeben.
Ich habe meinen inzwischen Fehler gefunden. :)
Das Problem waren im stdWrap die folgenden Zeilen:
stdWrap {
if.isLessThan.field = doktype
if.value = 3
if.isNull.field = doktype
if.negate = 1
}
und dann in der Condition noch folgende Ergänzung:
[{$wwonepagetemplate.metaPageId} in tree.rootLineParentIds]
lib.content.10 {
select.pidInList >
stdWrap.if.value =
}
[END]
Das ist das gesamte Script für die Ausgabe des Contents.
## Content
lib.content = COA
lib.content {
## Content from Homepage
10 = CONTENT
10 {
table = tt_content
select {
pidInList = {$wwonepagetemplate.rootPageId}
orderBy = sorting
where = colPos = 0
}
stdWrap {
if.isInList.field = doktype
if.value = 1
wrap = <section id="{field:ww_css_id}" class="content type-{field:doktype} grid-x grid-margin-x {field:ww_css_class}"><div class="cell">|</div></section>
wrap.insertData = 1
## show the pagetitle as sectiontitle on page
innerWrap = <h2 class="sectionTitle">{field:nav_title // field:title}</h2>|
innerWrap.insertData = 1
innerWrap.if.isTrue = {$wwonepagetemplate.showPageTitle}
}
}
## Contents from subpages
30 = CONTENT
30 {
table = pages
select.orderBy = sorting
select.where = doktype != 199
renderObj = COA
renderObj {
10 = CONTENT
10 {
table = tt_content
select {
pidInList.field = uid
orderBy = sorting
where = colPos = 0
}
stdWrap < lib.content.10.stdWrap
}
}
}
}
[{$wwonepagetemplate.metaPageId} in tree.rootLineParentIds]
lib.content.10 {
select.pidInList >
stdWrap.if.value =
}
[END]
Besten Dank für eure Hilfe,
Steffen