Zum Inhalt springen

marks.XY < styles.content.get wird nicht übernommen

Erstellt am 20. Oktober 2006 · 12 Antworten · letzte Antwort am 20. Oktober 2006

Tags: Templates & Layouts, Frage

t0bias ·

hallo,

wenn ich im template
marks.XY = TEXT
marks.XY.value = BLABLABLA
habe, wird der marker korrekt ersetzt.
wenn ich
marks.XY < styles.content.get mache,
müsste doch der content aus der
"normal"-spalte übernommen werden?

danke und gruss

tobi

t0bias ·
# Template content object:
temp.mainTemplate = TEMPLATE
temp.mainTemplate {
  template = FILE
  template.file = fileadmin/templates/indextemp.html
  workOnSubpart = MAINCONTENT
  marks.REPORTTEXT < styles.content.get
  
}


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

page.includeCSS { 
  file1 = fileadmin/css/menu.css
  file2 = fileadmin/css/text.css 
  file3 = fileadmin/css/tabelle.css
  file4 = fileadmin/css/menuStart.css
  file5 = fileadmin/css/bilder.css
}

page.headerData
page.headerData.value {

	<meta name="keywords" content="testseite">	
}


content.bodyTag =<body bgcolor="#7a7a7a" style="margin-top: 0px;">

page.10 < temp.mainTemplate

PS: Header-Data und BodyTag werden auch nicht übernommen

just2b ·

machs doch nicht so kompliziert und verschachtelt:
zB so:

page = PAGE
page {
	typeNum = 0
	
	includeCSS {
		file1 = fileadmin/dev/main.css
		file1.media = screen
		
		file2 = fileadmin/dev/additional.css
		file2.media = screen
	}
	
	10 = TEMPLATE
	10 {
		template = FILE
		template.file = fileadmin/dev/template.html
	
		workOnSubpart = TPL_BODY
		marks.XYZ < styles.content.get

bzw hier ein anderes bsp /faq/content-ausgeben

lg georg

einpraegsam.​net ·
t0bias schrieb

habs so gemacht, aber es wird immer noch nichts übernommen...
danke, trotzdem

du hast css_styled_content eingebunden und die seiten die du ansehen willst, hat auch inhalt in der spalte normal?
die seite ist auch keine weiterleitung auf eine leere seite?

t0bias ·

hm.. eingebunden..?
also wenn es als modul geladen ist, reicht das noch nicht?
muss ich das im TS irgendwie einbinden?

einpraegsam.​net ·
t0bias schrieb

okee...
und wie genau mache ich das..? :o

root template "Click here to edit whole template record"
Include static (from extensions): css_styled_content

auswählen und speichern