2016-12-11 6 views
0

ich alle Seiten in die Vorlage machen möchten ein OnePagerTYPO3 OnePager alle machen alle Seiten in einem nicht funktioniert

ich diesen Versuch zu machen:

page.20 = TEMPLATE 
page.20.template = FILE 
page.20.template.file = fileadmin/design/index.html 
page.20.marks{ 

lib.sectionContent = HMENU 
lib.sectionContent { 
    1 = TMENU 
    1 { 
    NO = 1 
    NO { 
     doNotLinkIt = 1 
     stdWrap > 
     stdWrap { 
     cObject = COA 
     cObject { 
      if.value = 4 
      if.equals.field = doktype 
      if.negate = 1 
      10 < temp.titleSectionId 
      10.wrap = <section id="|"> 
      20 = CONTENT 
      20 { 
      table = tt_content 
      select { 
       pidInList.field = uid 
      } 
      wrap = <div class="container">|</div> 
      renderObj < tt_content 
      } 
      30 = TEXT 
      30 { 
      wrap = </section> 
      } 
     } 
     } 
    } 
    } 
}  
    LANGMENU < temp.langMenu 

Ich habe einen Abschnitt in der Vorlagendatei ###CONTENT###

Und ich möchte, dass alle Inhalte dort gedruckt wurden. Wie wäre das möglich?

Antwort

3

Sie haben einen Verschachtelungsfehler.

Ihre Verschachtelung sieht derzeit wie folgt aus (mit dem Objekt-Browser überprüfen):

page.20.marks.lib.sectionContent ... 

jedoch die das TEMPLATE Objekt bei page.20 prüft nur für Schlüssel in .marks.* und erwartet ein gültiges Inhaltsobjekt (cObject) Konfiguration gibt. Der gültige Schlüssel lib hat jedoch keinen cObject Satz.

Was versuchen Sie wirklich zu tun, ist dies:

# prepare configuration for content 
lib.sectionContent = HMENU 
lib.sectionContent { 
    1 = TMENU 
    1 { 
    NO = 1 
    NO { 
     doNotLinkIt = 1 
     stdWrap > 
     stdWrap { 
     cObject = COA 
     cObject { 
      if.value = 4 
      if.equals.field = doktype 
      if.negate = 1 
      10 < temp.titleSectionId 
      10.wrap = <section id="|"> 
      20 = CONTENT 
      20 { 
      table = tt_content 
      select { 
       pidInList.field = uid 
      } 
      wrap = <div class="container">|</div> 
      renderObj < tt_content 
      } 
      30 = TEXT 
      30 { 
      wrap = </section> 
      } 
     } 
     } 
    } 
    } 
} 

# initialize configuration for the default page object 
page.20 = TEMPLATE 
page.20.template = FILE 
page.20.template.file = fileadmin/design/index.html 
page.20.marks{ 
    # copy the configuration from above to the right place 
    CONTENT < lib.sectionContent 
    # I really hope that you prepared temp.langMenu beforehand 
    LANGMENU < temp.langMenu 
# close block for page.20.marks 
} 
+0

verdammt ... ein dummer Fehler. Vielen Dank. Das hat das Problem gelöst – Felix

Verwandte Themen