Zum Inhalt springen

Body-Tag bleibt leer

Erstellt am 12. März 2010 · 3 Antworten · letzte Antwort am 13. März 2010

Tags: Templates & Layouts, Frage

madsen ·

hallo, bin neu beim forum und auch neu bei typo3. ich versuch grad mein erstes template zum laufen zu bringen und mir gehen langsam die ideen aus (bzw. google hilft mir nicht mehr wirklich 😉 )

ich hab folgendes template setup:

# Default PAGE object:
page = PAGE
page.typeNum = 0
page.includeCSS.file1 = fileadmin/templates/template1/style.css


# Copyright cObject
temp.copyright = TEXT
temp.copyright {
	        data = date : U
	        strftime = %Y
	        wrap = Copyright © by | {$sitename}
	        }
	        

# Title cObject
temp.title = TEXT
temp.title {
            field = subtitle
            case = upper
            wrap = <h1>|</h1>
            }	
	    

# Navigation config
# Horizontal menu 
temp.mainmenu = HMENU
temp.mainmenu.1 = TMENU
temp.mainmenu.1 {
	         wrap = <ul class="homenu">|</ul>
	         NO {
	             wrapItemAndSub = <li class="homenulink">|</li>
	             }
	         ACT = 1
	         ACT {
	              wrapItemAndSub = <li class="homenulink-active">|</li>
	              }
	         }
	

# Template Setup
page.10 = TEMPLATE


page.10.template = file

[globalVar=TSFE:page|layout=0]
page.10.template.file = fileadmin/templates/template1/main.html
page.bodyTag = <body>
[global]

[globalVar=TSFE:page|layout=1]
page.10.template.file = fileadmin/templates/template1/subpage.html
page.bodyTag= <body class="subpage">
[global]


page.10 {		   
	 workOnSubpart = DOCUMENT_BODY	 
	 subparts.MAIN_CONTENT < styles.content.get
	 subparts.RIGHT_CONTENT < styles.content.getRight
  	 subparts.MAIN_NAV < temp.mainmenu
  	 subparts.TITLE < temp.title
  	 subparts.COPYRIGHT < temp.copyright
  	 }

* die marker im html template sind alle gesetzt
* die pfade stimmen
* css_styled_content, content und styles.content sind alle eingebunden unter includes
* der layout switcher funktioniert auch, je nach layout wird class="subpage" ins body tag geschrieben, nur der verfluchte (tschuldigung) inhalt kommt nicht. wird wahrscheinlich irgendwas völlig dummes sein das ich überseh.

jemand evtl. nen tipp?

madsen ·
einpraegsam.net schrieb

workOnSubpart beachetet?

workOnSubpart = DOCUMENT_BODY ist vorhanden und der marker im template auch,falls es das ist was du meinst?

madsen ·

hrmpf... nun hab ichs beim herumprobieren gefunden... template = file klappt natürlich nicht. #angry#