Zum Inhalt springen

Brauche Hilfe styles.content.get

Erstellt am 22. Februar 2007 · 3 Antworten · letzte Antwort am 22. Februar 2007

Tags: Frage

cancro ·

Hallo,

ich bin dabei mich in Typo3 einzuarbeiten.

Schritt für Schritt gehe ich dieses Tutorial durch http://typo3.org/documentation/document-library/tutorials/doc_tut_templsel_de/0.0.2/view/1/3/

bis jetzt hat alles funktioniert...

nun habe ich folgendes problem das
der Inhalt den ich angelegt habe nicht angezeigt wird. und zwar solltes es durch diese zeilen angezeigt werde.

# Configuring the Auto-Parser for main template:
plugin.tx_automaketemplate_pi1 {
    # Read the template file:
  content = FILE
  content.file = fileadmin/template/main/template_1.html

    # Here we define which elements in the HTML that 
    # should be wrapped in subpart-comments:
  elements {
    BODY.all = 1
    BODY.all.subpartMarker = DOCUMENT_BODY

    HEAD.all = 1
    HEAD.all.subpartMarker = DOCUMENT_HEADER
    HEAD.rmTagSections = title

    TD.all = 1
  }

    # Prefix all relative paths with this value:
  relPathPrefix = fileadmin/template/main/
}

# Menu 1 cObject
temp.menu_1 = HMENU
  # First level menu-object, textual
temp.menu_1.1 = TMENU
temp.menu_1.1 {
    # Normal state properties
  NO.allWrap = <div class="menu1-level1-no"> | </div>
    # Enable active state and set properties:
  ACT = 1
  ACT.allWrap = <div class="menu1-level1-act"> | </div>
}
  # Second level menu-object, textual
temp.menu_1.2 = TMENU
temp.menu_1.2 {
    # Normal state properties
  NO.allWrap = <div class="menu1-level2-no"> | </div>
    # Enable active state and set properties:
  ACT = 1
  ACT.allWrap = <div class="menu1-level2-act"> | </div>
}

# Main TEMPLATE cObject for the BODY
temp.mainTemplate = TEMPLATE
temp.mainTemplate {
    # Feeding the content from the Auto-parser to the TEMPLATE cObject:
  template =< plugin.tx_automaketemplate_pi1
    # Select only the content between the <body>-tags
  workOnSubpart = DOCUMENT_BODY

    # Substitute the ###menu_1### subpart with dynamic menu:
  subparts.menu_1 < temp.menu_1

    # Substitute the ###content### subpart with some example content:
  subparts.content < styles.content.get

}

# Main TEMPLATE cObject for the HEAD
temp.headTemplate = TEMPLATE
temp.headTemplate {
    # Feeding the content from the Auto-parser to the TEMPLATE cObject:
  template =< plugin.tx_automaketemplate_pi1
    # Select only the content between the <head>-tags
  workOnSubpart = DOCUMENT_HEADER
}

# Default PAGE object:
page = PAGE
page.typeNum = 0

# Copying the content from TEMPLATE for <body>-section:
page.10 < temp.mainTemplate

# Copying the content from TEMPLATE for <head>-section:
page.headerData.10  < temp.headTemplate

kann mir da einer ein Tip geben warum es mit styles.content.get nicht funktioniert ?

mfg

Udo

just2b ·

Hallo Udo & willkommen im Forum,

hast du unter bei template > edit whole record > include static from extension > auch css_styled_content ausgewählt?

lg georg

cancro ·

Hallo georg,

erstmal lieben Dank für deine Antwort.

boh ich bin echt Doof #angry#

Habe "Include static" und "Include static (from extensions)"
verwechselt und so also styles.content(default) eingetragen und
nicht CSS Styled Content.

Ich glaube ich war ein wenig überlastet durch die ganzen neuen Eindrücke und habe den Wald vor lauter Bäumen nicht gesehen :o .
Typo3 ist wirklich harter Toback aber ich werde nicht aufgeben #paralyzed#

Vielen Dank noch einmal für dein Schups in die richtige Richtung und ich
hoffe das ich nicht noch allzuviele dumme Fragen hier stellen muss #giggle#

Lieben Gruß

Udo