Bitter Sweet
 
Sep
10

Typo3-Template

The free Typo3 Template

For making this Template work you have to install the TYPO3 Extension automaketemplate

config.xmlprologue = none

# Default PAGE object:
page = PAGE
page.typeNum = 0
page.config.doctype = xhtml_trans
page.includeLibs.some_random_id_string 
  = fileadmin/bitter-sweet/userfunctions.php


############################
#######PREPARE AUTOPARSER###
############################
# Configuring the Auto-Parser for main template:
plugin.tx_automaketemplate_pi1 {
    # Read the template file:
  content = FILE
  content.file = fileadmin/bitter-sweet/index.html 
  
  relPathPrefix = fileadmin/bitter-sweet/
  elements {
    BODY.all = 1
    BODY.all.subpartMarker = DOCUMENT_BODY

    HEAD.all = 1
    HEAD.all.subpartMarker = DOCUMENT_HEADER
    HEAD.rmTagSections = title
      
    DIV.all = 1   
    H1.all = 1   
  }

}

############################
######CONFIGURE MENU########
############################
temp.menu = HMENU
temp.menu.1 = TMENU
temp.menu.1 {
  NO.linkWrap = <h1>|</h1>
}

temp.menu.2 = TMENU
temp.menu.2 {
  wrap = <ul>|</ul>
  NO.linkWrap = <li>|</li>
}

############################
####INSERT DATE FORM PHP####
############################
# if this does not work make sure userfunctions.php 
# is in the correct directory 
# and may be executed (Linux Rights!)
# fileadmin/bitter-sweet/userfunctions.php

#date is an arra
temp.date = COA

#first element of the array will be the month
temp.date.1 = USER
temp.date.1.userFunc = user_functions->month

#second element of the array will be the year
temp.date.2 = USER
temp.date.2.userFunc = user_functions->year

temp.title = TEXT
temp.title.field = title


############################
###CREATE AUTOMATIC FOOTER##
############################
#fotter is an array
temp.footer = COA

#GREAT idea from http://www.typo3tricks.com
#automatic update of the year
temp.footer.10 = TEXT
temp.footer.10 {
  data = date:U
  strftime = %Y
  noTrimWrap = |&amb;copy; 2008 - | |  
}

temp.footer.20 = HMENU
temp.footer.20 {
  special = rootline
  special.range = 0|0
  1 = TMENU
  1 {
    NO.linkWrap = by&amb;nbsp;|&amb;nbsp;
  }
}

#DO NOT REMOVE!!!
temp.footer.30 = TEXT
temp.footer.30.value = &amb;nbsp;Typo3-Template by <a href="http://typo3-template.info">Typo3 Templates</a> 

temp.footer.40 = TEXT
temp.footer.40.value = &amb;nbsp;Valid <a href="http://jigsaw.w3.org/css-validator/check/referer">CSS</a> 
temp.footer.50 = TEXT
temp.footer.50.value = &amb;nbsp;&amb;amp; <a href="http://validator.w3.org/check?uri=referer">XHTML</a>. 

#DO NOT REMOVE!!!
temp.footer.60 = TEXT
temp.footer.60.value = &amb;nbsp;HTML-Template designed by <a href="http://templates.arcsin.se">Arcsin</a>

############################
####SUBSTITUE BODY PARTS####
############################
# Main TEMPLATE cObject for the BODY
temp.mainTemplate = TEMPLATE
temp.mainTemplate {
  template =< plugin.tx_automaketemplate_pi1
  workOnSubpart = DOCUMENT_BODY
  subparts.body < styles.content.get
  subparts.navigation < temp.menu
  subparts.date < temp.date
  subparts.title < temp.title
  subparts.footer < temp.footer
}
page.10 < temp.mainTemplate

############################
###SUBSTITUE HEADER PARTS###
############################
# 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
}
page.headerData.10  < temp.headTemplate