Hallo
eine Frage warum wird mein Template nach erstellen nicht angezeigt? Das setup sieht so aus
# Debug-Panel in die Ausgabe einblenden
config.admPanel = 0
# Linkstyle intern und extern auch fuer News-Plugin
plugin.tt_news.general_stdWrap.parseFunc < tt_content.text.20.parseFunc
# Konstanten fuer Template definieren
# Wenn notwendig koennen die Konstanten hier benutzt werden und im extension-Template von einzelnen
# Seiten veraendert werden.
{$.templatefile}
{$.BGIMAGE}
# Linkstyle intern und extern auch fuer News-Plugin
plugin.tt_news.general_stdWrap.parseFunc < tt_content.text.20.parseFunc
# Konstanten fuer Template definieren
# Wenn notwendig koennen die Konstanten hier benutzt werden und im extension-Template von einzelnen
# Seiten veraendert werden.
# Statische Dokumente simulieren
# Achtung, funktioniert nur, wenn Apache rewrite eingeschaltet ist.
# Config-Zeilen fuer Apache:
#----------------------------------------------------------
# RewriteEngine on
# RewriteRule ^[^/]*\.html$ index.php
#----------------------------------------------------------
config.simulateStaticDocuments = 1
# Configuring the Auto-Parser:
# Hinweis: Extension per Ext. Manager muss installiert sein.
plugin.tx_automaketemplate_pi1 {
# Read the template file:
content = FILE
content.file = fileadmin/template/index.html
# 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
TD.all = 1
}
# Prefix all relative paths with this value:
relPathPrefix = fileadmin/template/
}
# Erzeugen des Newsteasers (rechts oben)
# Es wird derjenige Datensatz ausgegeben, der sich im Infoblock befindet.
# Selektierung erfolgt ueber die ID. Diese wird angezeigt, wenn man ueber das Icon des
# Betreffenden Datensatzes fährt.
temp.TEASER = RECORDS
temp.TEASER {
tables = tt_content
source = 18
dontCheckPid = 1
}
# Erzeugen des Seitenheaders
# Der Untertitel der Seite wird in die Ausgabe eingeparst
temp.SUBHEADER = TEXT
temp.SUBHEADER {
value = {page:subtitle}
insertData = 1
}
# Tabellen-Hintergrundbilder auslesen
temp.image = TEXT
temp.image {
#this is your default file, if no file is uploaded
#in the media file, this is the file that will be displayed
value = fileadmin/images/cutout.jpg
override {
required = 1
#if no image is found in the current page media field then look up the rootline
data = levelmedia: -1, "slide"
#where typo will look for a file
wrap = uploads/media/ |
#the position in the list starting from 0
listNum = 0
}
}
# Erzeugen des "Wo-bin-ich"-Pfades
temp.KLICKPFAD = HMENU
temp.KLICKPFAD {
special = rootline
special.range = 1|-1
1 = TMENU
1.target = _self
# 1.wrap = |
1.NO.linkWrap = <span class="klickpfad">|</span>
# Menueeinträge kürzen wenn länger als 15 Zeichen
1.CUR < 1.NO
1.CUR {
doNotLinkIt = 1
}
}
# Menue auf der linken Seite erzeugen
# Hauptnavigation erste Ebene
temp.menu_1 = HMENU
temp.menu_1.1 = TMENU
temp.menu_1.1 {
# target nur bei Verwendung von Frames setzen
#target = content
# Normal state properties
NO {
ATagParams = onfocus="if(this.blur)this.blur()" class="navi"
allWrap = <span class="navi"><|/></span><img src="/img/space.gif" width="40" height="1" alt="" border="0">
}
# Enable active state and set properties:
ACT = 1
ACT {
ATagParams = onfocus="if(this.blur)this.blur()" class="naviakt"
allWrap = <span class="navi-akt"><|/></span><img src="/img/space.gif" width="40" height="1" alt="" border="0">
}
}
# Zweite Ebene der Hauptnavigation
temp.menu_2 = HMENU
temp.menu_2.1 = TMENU
temp.menu_2.entryLevel = 1
temp.menu_2.1 {
# Normal state properties
NO {
ATagParams = class="subnavi" onfocus="if(this.blur)this.blur()"
allWrap = |<br><br>
}
# Enable active state and set properties:
ACT = 1
ACT {
ATagParams = class="subnaviakt" onfocus="if(this.blur)this.blur()"
allWrap = |<br><br>
}
}
# 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
# Hauptnavigation ins Template einfuegen
# Markierung: ###menu_1###
subparts.menu_1 < temp.menu_1
# Untermenue ins Tempalte einfuegen
# Markierung: ###menu_2###
subparts.menu_2 < temp.menu_2
# Seiteninhalt der Hauptspalte ins Template einfuegen
# Markierung ###content###
subparts.content < styles.content.get
# Seiteninhalt der rechten Spalte ins Template einfuegen
# Markierung: ###rightcontent###
subparts.RIGHTCONTENT < styles.content.getRight
# Where-Am-I-Menue ins Template einfuegen
# Markierung: ###whereami###
#subparts.KLICKPFAD < temp.KLICKPFAD
# TEASER-Block rechts oben ins Template einfuegen
# Markierung: ###TEASER###
# subparts.TEASER < temp.TEASER
subparts.TEASER <cm_jsticker
# SUBHEADER auf der Seite ausgeben
# Markierung: ###SUBHEADER###
subparts.SUBHEADER < temp.SUBHEADER
# Hintergrundgrafik fuer NewsTeaser einfuegen
# Markierung ###BGIMAGE###
subparts.BGIMAGE < temp.image
# Downloadbilder anzeigen
subparts.DOWNLOAD < temp.DOWNLOAD
}
# 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
}
# Metatags aus der Seitenbeschreibung uebernehmen
# Seitentyp muss auf Extended geschaltet sein, sonst gibts die Eingabefelder nicht.
# Achtung: in der Datei local.conf muss folgende Zeile eingefuegt werden:
#----------------------------------------------------------
# $TYPO3_CONF_VARS["FE"]["addRootLineFields"] = 'author,author_email,keywords,description';
#----------------------------------------------------------
# Metatags fuer den content-Frame
content {
meta.author.data = fullRootLine: 0, author
meta.email.data = fullRootLine: 0, author_email
meta.keywords.data = fullRootLine: 0, keywords
meta.description.data = fullRootLine: 0, description
}
# Content-Frame, in dem die eigentliche Seite steht
# Wenn keine Frames verwendet werden, dann ists gleichzeitig das Seitenobjekt
content = PAGE
content.typeNum = 0
content.bodyTag = <body bgcolor="#ffffff" text="#202124" link="#202124" vlink="#205aa5" alink="#202124">
#content.bodyTagMargins = 0
content.bodyTagAdd = style="margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;width:100%;height:100%;"
content.stylesheet = fileadmin/template/css/sirconic.css
# Copying the content from TEMPLATE for <body>-section:
content.10 < temp.mainTemplate
# Copying the content from TEMPLATE for <head>-section:
content.headerData.15 = TEXT
content.headerData.15.value = <meta http-equiv="imagetoolbar" content="no">
content.headerData.16 = TEXT
content.headerData.16.value = <meta http-equiv="content-type" content="text/html; charset=iso-8859-1">
content.headerData.17 = TEXT
content.headerData.17.value = <META name="verify-v1" content="WFbBhPrbtPHFw0sJZHNQW6OPXRIK/bIoopUTIHiNFyE=" />
content.headerData.30 < temp.headTemplate
# Dieses Codeschnipsel stellt die PopUp-Fenster für Grafiken so ein, dass der Hintergrund
# weiss ist und das Fenster genauso gross wie der Rahmen ist. (Kein dunkler Rand mehr)
# Ausserdem wird das PopUp beim Klick wieder geschlossen. (Nur wenn Java-Skript eingeschaltet ist)
tt_content.image.20{
1.imageLinkWrap = 1
1.imageLinkWrap {
enable = 1
bodyTag = <BODY bgColor=white marginwidth="0" marginheight="0">
wrap = <A href="javascript:close();"> | </A>
width = 800m
height = 600m
JSwindow = 1
JSwindow.newWindow = 1
JSwindow.expand = 0,0
}
}
# entfernt die Typo3 plazierten margins
#<p style="margin: 0 0 0 0"></p>
tt_content.text.20.parseFunc.nonTypoTagStdWrap.encapsLines.addAttributes {
P.style=
}
# Hier ersetzen wir die <p>-Tags durch einfache BRs
RTE.default.proc {
dontConvBRtoParagraph = 1
}
#no wrapping of RTE lines
tt_content.text.20.parseFunc {
nonTypoTagStdWrap.encapsLines.nonWrappedTag >
nonTypoTagStdWrap.encapsLines.wrapNonWrappedLines = | </br>
}
plugin.tt_news {
displayList {
image {
file.maxW = 400
file.maxH = 400
}
links_stdWrap {
ATagParams = class="weiter"
if.isTrue.field = links
}
}
}
und der Quelltext der leeren Seite so, waere echt nett wenn sich das mal einer anschauen koennte schonmal im voraus danke
gruss flo
<!DOCTYPE html
PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<!--
This website is powered by TYPO3 - inspiring people to share!
TYPO3 is a free open source Content Management Framework initially created by Kasper Skaarhoj and licensed under GNU/GPL.
TYPO3 is copyright 1998-2006 of Kasper Skaarhoj. Extensions are copyright of their respective owners.
Information and contribution at http://typo3.com/ and http://typo3.org/
-->
<link rel="stylesheet" type="text/css" href="fileadmin/template/css/sirconic.css" />
<meta http-equiv="imagetoolbar" content="no"><meta http-equiv="content-type" content="text/html; charset=iso-8859-1"><META name="verify-v1" content="WFbBhPrbtPHFw0sJZHNQW6OPXRIK/bIoopUTIHiNFyE=" />
<title>Startseite: Startseite</title>
<meta name="generator" content="TYPO3 4.1 CMS" />
<script type="text/javascript">
/*<![CDATA[*/
<!--
var browserName = navigator.appName;
var browserVer = parseInt(navigator.appVersion);
var version = "";
var msie4 = (browserName == "Microsoft Internet Explorer" && browserVer >= 4);
if ((browserName == "Netscape" && browserVer >= 3) || msie4 || browserName=="Konqueror" || browserName=="Opera") {version = "n3";} else {version = "n2";}
// Blurring links:
function blurLink(theObject) { //
if (msie4) {theObject.blur();}
}
// -->
/*]]>*/
</script>
</head>
<body bgcolor="#ffffff" text="#202124" link="#202124" vlink="#205aa5" alink="#202124" style="margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;width:100%;height:100%;">
</body>
</html>