Zum Inhalt springen

Suche, Filelinks, Login, Mail form,...

Erstellt am 4. Juni 2003 · 6 Antworten · letzte Antwort am 10. Juni 2003

Tags: Templates & Layouts, Inhaltselemente, Frage

ingobert ·

Hallo

Bin Anfänger in Typo3 und habe bis jetzt bereits "Der Einstieg" und "Modern Template Building 1" durchgearbeitet!

Habe mir folgendes Template nach "Modern Template Building 1"
gebastellt:

# Configuring the Auto-Praser 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 subparts-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-praser to the TEMPLATE cObject:
 template =< plugin.tx_automaketemplate_pi1
  # Select only the content between the <body>-tags
 workOnSubpart = DOCUMENT_BODY

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

# Substitute the ###content### with some example content:
 subparts.content < styles.content.get
marks.ileft = HTML 
marks.ileft < styles.content.getLeft 
}

# Main TEMPLATE cObject for the HEAD
temp.headTemplate = TEMPLATE
temp.headTemplate {
  # Feeding the content from the Auto-praser 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

template_1.html auch in etwa wie in "Modern Template Building 1"

Bin mit dem Ergebnis auch ganz zufrieden,...
aber nun stellt sich folgendes Problem:

Kann in die Contentbereiche verschiedene Contentelemente wie Texte, Listen, Sitemap,... einfügen, aber Search forms, Login Formulare, Filelinks, Mail form kann ich zwar im Backend einfügen - diese werden im Frontend jedoch nicht angezeigt.

Was mache ich falsch?
Wie muss ich TS bzw template_1.html abändern?
Habe ich in den beiden einführenden Dokus was übersehen?
An welche Doku soll ich mich nun wenden?

Besten Dank im Voraus!
Ingo

meillo ·

8-)
ich weis nicht genau ob ich dir helfen kann, bin selber
newbie:

ich hoffe das du die extensions installiert hast:

#für das Loggin die pid angeben:
styles.content.loginform.pid = 14

# für das forum listenform:
plugin.tt_board_list.file.templateFile =
EXT:tt_board/pi/board_template1.tmpl

# für das forum baumform
plugin.tt_board_tree.file.templateFile = EXT:tt_board/pi/board_template2.tmpl

ingobert ·

Hallo!

Habe dazu was im Forum gefunden!

Liegt an CSS STYLED CONTENT!

#1230

Wie kann ich das sinnvoll umgehen? CSS STYLED CONTENT nicht verwenden? Gibts andere Lösungen?
Welche Doku soll ich in Angriff nehmen?

MFG Ingo

ingobert ·

Hallo!

Habe nun versucht das "styles.content.get" nicht zu verwenden! Verwende jetzt tt_content mit marker.
Leider ohne Erfolg! Bekomme zwar immer noch den Content (TEXT) angezeigt, Elemente wie Suche, Filelinks,... werden einfach nicht dargestellt!Weiters weiß ich nun nicht mehr wie der Inhalt "links", "mitte", "rechts", "border" zu trennen ist!
Texte von verschiedenen Spalten werden mit "tt_content" immer in einer Spalte untereinander dargestellt.

Hier mein veränderter CODE:

# Configuring the Auto-Praser 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 subparts-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-praser to the TEMPLATE cObject:
 template =< plugin.tx_automaketemplate_pi1
  # Select only the content between the <body>-tags
 workOnSubpart = DOCUMENT_BODY

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

# Substitute the ###content### with some example content:
marks.MIDDLE = CONTENT
marks.MIDDLE.table = tt_content
}

# Main TEMPLATE cObject for the HEAD
temp.headTemplate = TEMPLATE
temp.headTemplate {
  # Feeding the content from the Auto-praser 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

Wie soll ich nun weiter machen? (DOKU?)

ingo

ingobert ·

Hallo!

Werde bei "styles.content.get" bleiben und auf die internen Contentelemente wie Suche, Filelinks,... verzichten!
Verwende die sowieso wesentlich besseren Erweiterungen!

Ist doch die richtige Entscheidung? ODER?
Ingo!