[TYPO3-german] Rootline
Brigitte Portner
portner at eids.ch
Mon Aug 18 12:59:05 CEST 2008
Hallo Leihla
Ich dachte, dass sind Subparts, denn wenn ich die den Inhalt der TXT-Files
ins Setup kopiere, dann sieht das so aus:
config {
#Ausgabe von XHTML aktivieren
xhtml_cleaning = all
#Doctype auf XHTML 1.0 organicrhythmal einstellen
#doctype = xhtml_trans
doctype = xhtml_strict
#renderCharset = utf-8
#Sprache für die Attribute "xml:lang" und "lang" im <html>-Tag
htmlTag_langKey = de
#XML Prolog unterdrücken, weil der Internet Explorer ansonsten in den nicht
standartkonfomen Quirks-Modus wechselt
xmlprologue = none
#Sprache
language = de
locale_all = german
admPanel = 1
inlineStyle2TempFile = 1
# Externalize CSS and JS
removeDefaultJS = 0
#Cache
#cache_clearAtorganicrhythm
# Spam Protection
spamProtectEmailAddresses = 2
spamProtectEmailAddresses_atSubst = (at)
index_enable = 1
}
config.linkVars = L
config.sys_language_uid = 0
config.language = de
config.locale_all = german
[globalVar = GP:L = 1]
config.sys_language_uid = 1
config.language = en
config.locale_all = english
[global]
lib.parseFunc_RTE.tags.link.typolink.target = _self
# Popup für Bilder fomatieren
tt_content.textpic.20{
1.imageLinkWrap = 1
1.imageLinkWrap {
enable = 1
bodyTag = <BODY bgColor=white leftmargin="0" topmargin="0" marginwidth="0"
marginheight="0">
wrap = <A href="javascript:close();"> | </A>
JSwindow = 1
JSwindow.newWindow = 1
JSwindow.expand = 0,0
}
}
tt_content.image.20 {
1.imageLinkWrap = 1
1.imageLinkWrap {
enable = 1
bodyTag = <BODY bgColor=white leftmargin="0" topmargin="0" marginwidth="0"
marginheight="0">
wrap = <A href="javascript:close();"> | </A>
JSwindow = 1
JSwindow.newWindow = 1
JSwindow.expand = 0,0
}
}
# ******************
# CType: mailform
# ******************
tt_content.mailform = COA
tt_content.mailform.10 = < lib.stdheader
tt_content.mailform.20 = FORM
tt_content.mailform.20 {
# stdWrap.wrap = <fieldset style="border:1px; width:90%;
padding:5px;">|</fieldset>
# labelWrap.wrap = <div style="width:100px;float:left;">|</div>
# REQ.labelWrap.wrap = <div style="width:100px;float:left;">|</div>
# commentWrap.wrap = <div style="width:100px;float:left;">|</div>
# radioWrap.wrap = <div style="width:100px;float:left;">|</div>
params >
params.input = class="mf-input"
params.password = class="mf-pass"
params.textarea = class="mf-text"
params.check = class="mf-check"
radio = class="mf-radio"
params.select = class="mf-select"
params.file = class="mf-file"
params.reset = class="mf-reset"
params.submit = class="mf-submit"
badMess = Bitte kontrollieren Sie folgende Angaben:
target = _self
}
#Seitentitel auslesen
temp.siteTitel = COA
temp.siteTitel {
#wrap=:Das ist der Titel:|
5 = RECORDS
5 {
# id des template-records
source = 11
tables = sys_template
conf.sys_template >
conf.sys_template = TEXT
conf.sys_template.field=sitetitle
}
}
# Wechselnde Headgrafik
temp.toppic = IMAGE
temp.toppic {
file = fileadmin/daten/banner/banner.jpg
file.import.data = levelmedia: -1, "slide"
file.import = uploads/media/
file.import.listNum = 0
file.import.override.field = media
}
temp.copyright = TEXT
temp.copyright {
data = date : U
strftime = %Y
wrap = © | Organic Rhythm.
}
# Seite weiterempfehlen
temp.empfehlen = COA
temp.empfehlen {
wrap = <a href="index.php?id=16"><img
src="fileadmin/templates/organicrhythm/images/tip.png" border="0" alt="Seite
weiterempfehlen"></a>
postUserFunc.windowparams =
(resizable=yes,toolbar=yes,scrollbars=yes,menubar=no,width=800,height=500)
1 = TEXT
1.data = TSFE : |
1.typolink.tipUrl="http://myhost.ch/index.php?id="|
1.typolink.parameter = |
}
temp.Menu = HMENU
#temp.Menu.wrap = |
#temp.Menu.excludeUidList =
temp.Menu.maxItems = 9
temp.Menu {
#special = directory
#special.value = 1
#entryLevel = 0
1 = TMENU
1 {
expAll = 1
wrap = <ul id="nav">|</ul>
noBlur = 1
NO = 1
NO {
wrapItemAndSub = <li class="first">|</li>|*|<li>|</li>
ATagTitle.field = description // title
}
IFSUB = 1
IFSUB {
wrapItemAndSub = <li class="menuparent first">|</li>|*|<li
class="menuparent">|</li>
ATagParams =
ATagTitle.field = description // title
}
CUR = 1
CUR {
wrapItemAndSub = <li class="first">|</li>|*|<li>|</li>
ATagParams = class="active"
ATagTitle.field = description // title
}
CURIFSUB = 1
CURIFSUB {
wrapItemAndSub = <li class="menuparent first">|</li>|*|<li
class="menuparent">|</li>
ATagParams = class="active"
ATagTitle.field = description // title
}
ACT = 1
ACT {
wrapItemAndSub = <li class="first">|</li>|*|<li>|</li>
ATagParams = class="active"
ATagTitle.field = description // title
}
ACTIFSUB = 1
ACTIFSUB {
wrapItemAndSub = <li class="menuparent first">|</li>|*|<li
class="menuparent">|</li>
ATagParams = class="active"
ATagTitle.field = description // title
}
}
2 < .1
2 {
wrap = <ul>|</ul>
}
3 < .2
4 < .2
}
###### Menu Unten Anfang ###########
temp.MenuUnten=HMENU
temp.MenuUnten.special=directory
temp.MenuUnten.special.value=3
temp.MenuUnten.1=TMENU
temp.MenuUnten.1{
noBlur = 1
NO{
linkWrap=|*| | | |*| |*|
ATagParams=class="menu_link"
}
}
############ Menu Unten Ende ############
temp.lastactmenu = COA
temp.lastactmenu {
5 = TEXT
5.value = Die 5 neuesten Beiträge der letzten Woche finden Sie hier:
5.wrap = <h3>|</h3>
10 = HMENU
10 = HMENU
10 {
special = updated
special.value = 1
#special.mode = tstamp
special.maxAge = 3600*24*5
special.limit = 8
1 = TMENU
1.noBlur = 1
1.wrap = <ul class="updated">|</ul>
1.NO = 1
1.NO.linkWrap = <li class="first">|</li>|*|<li>|</li>
1.NO.stdWrap.append = COA
1.NO.stdWrap.append.doNotLinkIt = 1
1.NO.stdWrap.append {
10 = TEXT
10.wrap = <span
class="mnuupdate"> Aktualisiert: | </span>
10.field = SYS_LASTCHANGED
10.strftime = %A
}
1.CUR < .NO
1.CUR {
doNotLinkIt = 1
linkWrap = <li class="first">|</li>|*|<li>|</li>
}
}
}
tmp.breadcrump = HMENU
tmp.breadcrump {
special = rootline
special.range = 1|-1
1 = TMENU
1.noBlur = 1
1.wrap = {$standort} |
#1.wrap = <p id="rootline">{$standort} | </p>
1.target = _self
1.NO {
linkWrap= |
# optionSplit: vor erstem item kein "/", sonst immer einer
#allWrap = |*|<font face="Arial,Helvetica,sans-serif,sans-serif"
size="1" color="yellow" class="rootline">| / </font> |*| |*|
# optionSplit: vor jedem item ein "/
allWrap = |*| » |*||*| |
ATagBeforeWrap = 1
}
}
#page Last Updated
temp.lu = TEXT
temp.lu {
data = page:lastUpdated
if.isTrue.data = page:lastUpdated
date = d.m.Y
#date = d.m.Y, H:i
wrap = Aktualisiert: |
data = register : SYS_LASTCHANGED
if >
}
druck >
druck = PAGE
druck.typeNum=98
druck.bodyTag =<body bgcolor="#ffffff" leftmargin="0" topmargin="0"
marginwidth="0" marginheight="0" onload="javascript:window.print()">
druck.stylesheet = {$plugin.alt.print.file.stylesheet}
druck.10 = TEMPLATE
druck.10 {
template = FILE
template.file = {$plugin.alt.print.file.template}
marks {
PAGE_TITLE = TEXT
PAGE_TITLE.field = title
PAGE_SUBTITLE = TEXT
PAGE_SUBTITLE.field = subtitle
PAGE_AUTHOR = TEXT
PAGE_AUTHOR.field = author
PAGE_AUTHOR.required=1
PAGE_AUTHOR.typolink.parameter.field = author_email
PAGE_UID = TEXT
PAGE_UID.field = uid
INHALT < styles.content.get
}
workOnSubpart = DOKUMENT
}
####Ende Setup Druckversion#####
druckansicht = COA
druckansicht {
10 = TEXT
10.value = <meta http-equiv="refresh" content="0;
URL=javascript:window.print()">
10.wrap = <a target="_blank" href="index.php?id=|&type=98
10.field = uid
20 = TEXT
20.wrap = &L=|">{$prn}</a>
20.data = GPvar:L
}
temp1.druck = TEXT
temp1.druck {
field = uid
value = <meta http-equiv="refresh" content="0;
URL=javascript:window.print()">
wrap = <a href="index.php?id=|&type=98"><img
src="fileadmin/templates/organicrhythm/images/print.png" border="0"
alt="Seite drucken" title="Aktuelle Seite drucken"></a>
}
# Counter fomatieren
plugin.tx_cscounter_pi1 {
minDigits = 5
id = 1
noReload = 1
textOnly = 1
wrap = <font size=1 face="verdana,arial,helvetica"
color=#666666>Besucher: |</font>
#wrap = Besucher: |
showSince = 0
wrapSince = <br>seit |
formatSince = %d.%m.%Y
}
page = PAGE
page.typeNum = 0
page.meta.DESCRIPTION = Organic Rhythm Template für TYPO3.
page.meta.KEYWORDS = Internet, Template, Typo3, css, cms
#config.xhtml_cleaning = all
#config.disablePrefixComment = 1
#config.pageTitleFirst = 1
page.includeCSS {
file1 = fileadmin/templates/organicrhythm/css/default.css
file2 = fileadmin/templates/organicrhythm/css/menu.css
}
#page.includeLibs.tmenu_layers =
fileadmin/templates/organicrhythm/scripts/gmenu_layers.php
page.headerData.1 = TEXT
page.headerData.1.value (
<script type='text/javascript'
src='fileadmin/templates/organicrhythm/scripts/menu.js'></script>
<!--[if IE 7]>
<style type=text/css>
@import #url(fileadmin/templates/organicrhythm/css/ie7.css);
</style>
<![endif]-->
)
page.bodyTag = <body>
page.1 = TEMPLATE
page.1.marks.PAGE_UID = TEXT
page.1.marks.PAGE_UID.field = uid
page.1 {
template = FILE
template.file = fileadmin/templates/organicrhythm/index.html
workOnSubpart = DOKUMENT
subparts.INHALT < styles.content.get
subparts.MENU < temp.Menu
#subparts.MENU_UNTEN < temp.MenuUnten
subparts.UPDATE < temp.lastactmenu
#subparts.ROOTLINE < tmp.breadcrump
subparts.INHALT_RECHTS < styles.content.getRight
#subparts.INHALT_RECHTS.select.pidInList = 2
subparts.TITEL = TEXT
subparts.TITEL.field = title // subtitle
#subparts.SITENAME = TEXT
#subparts.SITENAME < temp.siteTitel
#subparts.BANNER < temp.toppic
#subparts.SUCHE < temp.suche
#subparts.CONTENT_BORDER < styles.content.getBorder
#subparts.COUNTER = TEXT
#subparts.COUNTER < plugin.tx_cscounter_pi1
#subparts.DRUCKEN < druckansicht
#subparts.LASTUPDATE < temp.lu
subparts.COPYRIGHT < temp.copyright
#subparts.SPRACHE = PHP_SCRIPT
#subparts.SPRACHE.file =
fileadmin/templates/organicrhythm/scripts/languageMenu.php
}
#page Last Updated
#subparts.LASTUPDATE = TEXT
#subparts.LASTUPDATE {
#data = page:lastUpdated
#if.isTrue.data = page:lastUpdated
#date = d.m.Y, H:i
#wrap = Aktualisiert: |
#data = register : SYS_LASTCHANGED
#if >
#}
#subparts.MENU_UNTEN < page.12
#page.12 = ""
#subparts.IMAGE < temp.ImageOben
#Druckversion Setup
#alt_print.10.marks.INHALT < styles.content.get
#page.10.marks.PRINT = TEXT
#page.10.marks.PRINT.field = uid
#page.10.marks.PRINT.wrap = <a href="index.php?id=|&type=98"><img
src="fileadmin/templates/organicrhythm/images/print.png" border="0"
alt="Seite drucken" title="Seite #drucken"></a>
# Seite weiterempfehlen
#page.10.marks.TIP = COA
#page.10.marks.TIP {
# wrap = <a href="index.php?id=56"><img
src="fileadmin/templates/organicrhythm/images/tip.png" border="0" alt="Seite
weiterempfehlen"></a>
# postUserFunc.windowparams =
(resizable=yes,toolbar=yes,scrollbars=yes,menubar=no,width=800,height=500)
# 1 = TEXT
# 1.data = TSFE : |
# 1.typolink.tipUrl="index.php?id="|
# 1.typolink.parameter = |
#}
Das Einbinden des Menus ins Template via
<div id="menu">
<!-- ###MENU### -->
Menu
<!-- ###MENU### -->
</div>
funktioniert ja auch, wieso das der Rootline nicht?
Wie kriege ich bloss "meine Rootline" hin?
Viele Grüsse.
Brigitte
-----Ursprüngliche Nachricht-----
Von: typo3-german-bounces at lists.netfielders.de
[mailto:typo3-german-bounces at lists.netfielders.de] Im Auftrag von Leihla
Gesendet: Montag, 18. August 2008 10:11
An: typo3-german at lists.netfielders.de
Betreff: Re: [TYPO3-german] Rootline
Hallo Brigitte,
diese Schreibweise ist für eine Befüllung über Subparts
(ohne automaketemplate)
zB
page.10 {
template = FILE
template.file = fileadmin/template/template.html
workOnSubpart = DOCUMENT_BODY
subparts.LASTUPDATE < temp.lu
...
}
Brigitte Portner schrieb:
>
> <div id="update">
>
> <!-- ###LASTUPDATE### -->
>
> Last update
>
> <!-- ###LASTUPDATE### -->
>
> </div>
>
wenn du keine zuweisung über automaketemplate für id=update gemacht hast ...
könnte folgend aussehen zB ....
temp.mainTemplate = TEMPLATE
temp.mainTemplate {
template =< plugin.tx_automaketemplate_pi1
workOnSubpart = DOCUMENT_BODY
subparts.update < temp.lu
...
}
... dann müsste in dem quelltext deiner seite aktuell folgendes stehen
<div id="update">
<!-- Aktualisiert: 1.1.2008 -->
Last update
<!-- Aktualisiert: 1.1.2008 -->
</div>
Für einen Marker nur folgendes im Template setzen:
###LASTUPDATE###
lg
_______________________________________________
TYPO3-german mailing list
TYPO3-german at lists.netfielders.de
http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-german
More information about the TYPO3-german
mailing list