RSS Feed

Typo3 Typoscript snippet Basic configuration

November 3, 2011 by admin

I develop a lot of HTML Typoscript templates for Typo3, without Templavoila or any other fancy extensions. With the release of Typo3 4.5 and the introduction of Backend Layouts there have been a lot of improvements which make Templavoila obsolete in many scenarios.

I will post a few Typoscript snippets I use in a lot of projects over the next few weeks.

Basic configuration stuff

config {
  language = de
  locale_all = de_DE
  doctype = html5
  htmlTag_setParams = lang="de
  prologue = none
  metaCharset = utf-8
  htmlTag_langKey = de-DE
  linkVars = L
  sys_language_uid = 1
  spamProtectEmailAddresses = 1
  spamProtectEmailAddresses_atSubst =  (at) 
}

What this does is to set the language to german, define language url parameters for a multi language setup and try to protect standard email addresses.

 

More to come soon …


2 Comments »

  1. Just a small hint:

    The correct doctype for HTML5 is “html5″ without the underscore. The html_5 declaration is deprecated.

    • Reinhold says:

      Hi Steffen, you’re absolutely right, I’ve fixed it above. Thanks for contributing.
      With the current 4.6 version they’re still working both.

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre lang="" line="" escaped="" highlight="">