My TYPO3 default template

After setting up several TYPO3 websites, I thought it was time to build my own default template to start with for new projects. I’m sharing this with everyone in the hope it is useful, but be aware that the template is only my current way of doing things, and will probably change in the future. Also, I do not recommend to copy-and-paste it if you do not know what all these lines do. Look them up in the TSref.

######### PAGE #########
page = PAGE
page {
 typeNum = 0
 meta {
  language = de
  description = TYPO3TEST
  keywords =
 }
 includeCSS {
  file1 = {$css_file1}
 }
 includeJS {

 }
 shortcutIcon = {$favicon_file}
}

######### CONFIG #########
config {
 doctype = xhtml_strict
 xmlprologue = none
 xhtml_cleaning = all
 disablePrefixComment = 1
 removeDefaultJS = 1
}
lib {
 parseFunc_RTE.nonTypoTagStdWrap.encapsLines.addAttributes.P.class >
 stdheader.stdWrap.dataWrap >
 stdheader.3.headerClass >
}
tt_content {
 stdWrap.innerWrap.cObject.default {
  10 >
  15 >
  20 >
  30.value = |
 }
 stdWrap.dataWrap >
}
plugin {
 tx_cssstyledcontent._CSS_DEFAULT_STYLE >
}

######### MENU #########
lib.navigation = HMENU
lib.navigation {
 1 = TMENU
 1 {
  wrap = <ul>|</ul>
  expAll = 1
  NO {
   wrapItemAndSub = <li>|</li>
  }
  ACT = 1
  ACT {
   wrapItemAndSub = <li class="active">|</li>
  }
 }
 2 = TMENU
 2 {
  wrap = <ul>|</ul>
  NO {
   wrapItemAndSub = <li>|</li>
  }
  ACT = 1
  ACT {
   wrapItemAndSub = <li class="active">|</li>
  }
 }
}

######### REALURL #########
config {
 simulateStaticDocuments = 0
 baseURL = my.domain.tld
 tx_realurl_enable = 1
}

######### TEMPLATE #########
page.10 = USER
page.10.userFunc = tx_templavoila_pi1->main_page

filed under , posted on March 16, 2010

Comments are closed.