Zum Inhalt springen

Content wird nicht angezeigt

Erstellt am 10. Juli 2006 · 10 Antworten · letzte Antwort am 10. Juli 2006

Tags: Frage

jawbox ·

Vielleicht kann mir jemand helfen. Mein eingebener COntent wird nicht angzeigt.

Wenn ich den Quelltext der Seite anzeigen lasse, werden die Marker angezeigt. Habe ich da etwas falsch gemacht bzw. was habe ich da falsch gemacht.

<div id="content"><!--###content### begin --><!--###content### end --></div>

stefan s ·

<div id="content"><!--###content### begin --><!--###content### end --></div>

Wenn das dasteht, ist content ein Subpart und kein Marker. Musst du also im Setup entsprechend ansprechen.

jawbox ·

Also mein TS sieht wie folgt aus. Was habe ich bloß verkehrt gemacht:

# Configuring the Auto-Parser for main template:
plugin.tx_automaketemplate_pi1 {
    # Read the template file:
  content = FILE
  content.file = fileadmin/template/main/index.htm
    # 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
    DIV.all = 1
  }
    # Prefix all relative paths with this value:
  relPathPrefix = fileadmin/template/main/
}

# Menü (Ebene 1)
      mainnav = HMENU
      mainnav {
        1 = TMENU
        1.NO = 1
      }
 
# Menü (Ebene 2)
      subnav = HMENU
      subnav {
        entryLevel = 1
        1 = TMENU
        1.NO = 1
       }

# Menü (Ebene 3)
      sub2nav = HMENU
      sub2nav {
        entryLevel = 2
        1 = TMENU
        1.NO = 1
       }


# 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 ###mainnav### subpart with dynamic menu:
  subparts.mainnav < mainnav
    # Substitute the ###subnav### subpart with dynamic menu:
  subparts.subnav < subnav
    # Substitute the ###subnav### subpart with dynamic menu:
  subparts.sub2nav < sub2nav
    # 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
jawbox ·

#angry#

Was hat diese Antwort nur zu bedeuten. Bin Anfänger. Das Skript ist aus dem Tutorial. Was meinst Du?

just2b ·

klick auf template (links im menü), wähle deine root-seite aus, klick auf edit whole record, bei include static => wählst du content(default) aus

georg

Proximo ·
# Menü (Ebene 1)
      mainnav = HMENU
      mainnav {
        1 = TMENU
        1.NO = 1
      }
 
# Menü (Ebene 2)
      subnav = HMENU
      subnav {
        entryLevel = 1
        1 = TMENU
        1.NO = 1
       }

# Menü (Ebene 3)
      sub2nav = HMENU
      sub2nav {
        entryLevel = 2
        1 = TMENU
        1.NO = 1
       }

Dieser TS steht ohne Zuordnung im Raum herum und erfüllt keinen Zweck... was genau sollte er machen?

BZW:

#
    # Substitute the ###mainnav### subpart with dynamic menu:
  subparts.mainnav < mainnav
    # Substitute the ###subnav### subpart with dynamic menu:
  subparts.subnav < subnav
    # Substitute the ###subnav### subpart with dynamic menu:
  subparts.sub2nav < sub2nav

Hab ich was verpasst... sind leere Variablen/Variablen ohne Deklarierung jetzt legitim?

MFG Proximo

jawbox ·

@ just2b

Bei "Include static" kann ich nur CSS Styled Content (css_styled_content) auswählen und dieses ist auch ausgewählt. Wie komme auch Deinen empfohlenen Punkt ran.

@ Proximo
Das Menüscript habe ich hier aus dem Forum. Und es funktioniert. Warum kann ich Dir nicht sagen, bin wie erwähnt absoluter Anfänger.

Proximo ·

:o Man lernt nie aus..

@ jawbox

Es gibt "Include static" und "Include static (from extensions)"

Diese 2 sind genau untereinander... darunter ist auchnoch "Include basic template" (da kannst du von dir erstellte Extensiontemplates includen)

Was du suchst heißt "Include static", das Erste von den 3.

Dürfte eine nette Liste Templates sein, aber du wirst "styles.content (default)" schon finden 😉

MFG Proximo

jawbox ·

Oh man meine Verzweifelung lässt mich wohl erblinden. Aber es funktioniert trotzdem noch nicht werder mit
content(default)
noch mit
styles.content (default)

Woran könnte es noch liegen?