Zum Inhalt springen

Zweites Template bei noframe Seite

Erstellt am 21. Juli 2006 · Noch keine Antworten

Tags: Frage

MrFelicity ·

Hallo,

ich bin mal wieder am verzweifeln. Kann mir jemand zu folgendes Problem eine Hilfestellung geben?

Um meine Frame-Seite Suchmaschinenfähig zu machen, möchte ich gerne eine noFrame Version erstellen. Dazu habe ich ein Template erstellt, welches wie das Frameset aufgebaut ist und nur Tabellen enthält. Soweit logisch. Nun möchte ich dieses Template anstatt des Framesets benutzen, wenn im Broswer die Variabel noframes=1 mitgeschleift wird. Da ich von PHP her komme hab ich mir folgenden Code überlegt:

if (noframes != 1) {

	outer_frameset.frameSet.rows = 150,*
	outer_frameset.frameSet.params = border="0" framespacing="0" frameborder="NO" id="page"
	outer_frameset.frameSet {
		1 = FRAME
		1.obj = top
  		1.params = scrolling="NO" noresize frameborder="NO" marginwidth="0" marginheight="0"
		2 = FRAMESET
		2.cols = 225, *, 220
		2 {
			1 = FRAME
			1.obj = left
			2 = FRAME
			2.obj = content
			3 = FRAME
			3.obj = right
		}
	}

#

} ELSE {

Dann die Seite mit

	temp.mainTemplate = TEMPLATE
	temp.mainTemplate {
		template = FILE
		template.file = fileadmin/templates/content.html
		subpart = DOCUMENT_ROOT
		marks {
}
}

}

So in der Art. Wie kann ich das realisieren?

Wenn ich gleich zwei unabhänige Templates mit Typo3 erstellen kann, und das System entscheidet dann, welches Template es benutzen will, dann wäre ich damit auch voll zufrieden. Wichtig ist nur, dass ich nicht den kompletten Inhalt kopieren will.

Vielen Dnak für eure Hilfe.

Gruß, Felix #angry#