[TYPO3-UG Australia] Typo3 3.8.1 - different way of calling templates from 3.6?
Cate Deans Smith
cdeans at diess.com.au
Wed Apr 26 04:10:56 CEST 2006
Hi all
Thanks so much for the responses about the disappearance of my front and
back end :-). In the end, I did simply wipe and start again - figured I can
use the practise anyway.
So now I have a 3.8.1 installation.
Only, I think that either I have missed something critical, or something is
a little different on this version. I *think* I have set up the typo
template exactly the same as I had before, but it isn't calling my html
page.
The typoscript is as follows:
Constants:
content {
wrap.header1 = <H1> | </H1>
wrap.header2 = <H2> | </H2>
wrap.header3 = <H3> | </H3>
wrap.header4 = <H4> | </H4>
wrap.bodytext = <P class="p"> | </P>
case.header1 = |
case.header2 = |
headerSpace = 0
space = 0
}
styles.content.textStyle {
face =
size =
color =
}
cSet {
pageColor = #FFFFFF
tableCellColor = #FFFFFF
color = black
color1 = #003366
color2 = #003366
fontFace = Verdana
fontFace.text = Verdana
}
Setup:
# Setting up 'page' to be the default PAGE object (type=0)
lib.stdheader.10.stdWrap.wrap =
tt_content.stdWrap.dataWrap = <A name="{field:uid}"></a>
page = PAGE
page.typeNum = 0
page.stylesheet = fileadmin/templates/global.css
page.bodyTag = <body leftmargin="0" topmargin="0" marginwidth="0"
marginheight="0">
page.1 = TEMPLATE
page.1.marks.PAGE_UID = TEXT
page.1.marks.PAGE_UID.field = uid
page.1 {
template = FILE
template.file = fileadmin/templates/global.htm
workOnSubpart = DOCUMENT_BODY
subparts.CONTENT_LEFT < styles.content.getLeft
subparts.CONTENT_RIGHT < styles.content.getRight
subparts.CONTENT_BORDER < styles.content.getBorder
subparts.CONTENT < styles.content.get
# Top Navigation
subparts.TOPNAV = HMENU
subparts.TOPNAV.special = directory
subparts.TOPNAV.special.value = 393
subparts.TOPNAV.1 = TMENU
subparts.TOPNAV.1 {
NO.allWrap = |*| <span class="topnav"> | |</span> |*|
ACT = 1
ACT.allWrap = |*| <span class="topnav"> | | </span>
|*|
}
# Bottom Navigation
subparts.BOTTOMNAV = HMENU
subparts.BOTTOMNAV.special = directory
subparts.BOTTOMNAV.special.value =
subparts.BOTTOMNAV.1 = TMENU
subparts.BOTTOMNAV.1 {
NO.allWrap = |*| <span class="bottomnav"> | |</span>
|*|
ACT = 1
ACT.allWrap = |*| <span class="bottomnav"> | |</span>
|*|
}
# Leftside Navigation
subparts.LEFTNAV = HMENU
subparts.LEFTNAV.special = directory
subparts.LEFTNAV.special.range = 0 | 1
subparts.LEFTNAV.1 = TMENU
subparts.LEFTNAV.1 {
NO.allWrap = <div class="leftnav"> | </div>
ACT = 1
ACT.allWrap = <div class="leftnav-act"> | </div>
}
subparts.LEFTNAV.1.2 = TMENU
subparts.LEFTNAV.1.2 {
NO.allWrap = <div class="leftnav"> | </div>
ACT = 1
ACT.allWrap = <div class="leftnav-act"> | </div>
}
}
# Enabling the admin panel for the 'page' PAGE object:
page.config.admPanel=1
# Set up PATH_INFO:
config.simulateStaticDocuments = PATH_INFO
config.simulateStaticDocuments_addTitle = 30
#config.absRefPrefix = http://www.deafhub.com/
# Don't forget to add CSet Stylesheet for P margins to work properly!
I have set the template as "Clear contstants, setup and set rootlevel." I
have included static "content(default)" and cSet Stylesheet., and
css_styled-content in static extensions.
Do I have to include the files as resources? I cant remember, and when I did
it, they automatically added the "_01", which didn't happen in 3.6 In any
case, I have tried both ways, including adding the * to the names in the
template.
Any clues?
Thanks!
Cate
More information about the TYPO3-UG-australia
mailing list