Home | Christian Missions | Christustreff Marburg | Pictures of Marburg | Job | Remote Communications | Linux OS | Psion page | Contact

horizontal rule in rainbow colours (2,1 kB)

Typo3 Web CMS

Typo3 is a very flexible, although complex, content management system. It's complexity is enough for the documentation to be scattered quite a bit. Here I try to collect the stuff needed to get started:

Concepts

Getting a Template Started with static TypoScript

Starting point: new, fresh installation of Typo3 for a "separate parked domain", hosted at hetzner.de. Login to the backend as admin.

  1. List view; create a new page (this will be the root level content page), unhide, assign a useful title, e.g. "Start Page".
  2. Template View; Start Page; "Create Template for a new site";
  3. List View; Start Page; "Template(1)"-area; edit page properties (pencil icon in line with "NEW SITE"):
  4. Create a stylesheet: Template; Start Page; Info/Modify; edit resources; new text resource: name "styles", type .css
  5. (useful, but very hard to configure) Import Extension RealURL

Working Template Example

temp.menu_1 = HMENU
temp.menu_1.wrap (
<div id="navi">
|
        </div>
)
temp.menu_1.1 = TMENU

temp.menu_1.1 {
NO.allWrap (
<h2> | </h2>
)
ACT = 1
ACT.allWrap (
<h2 class="menu1-act"> | </h2>
)
CUR = 1
CUR.allWrap (
<h2 class="menu1-cur"> | </h2>
)
expAll = 1
}
temp.menu_1.2 = TMENU
temp.menu_1.2 {
NO.allWrap (
<h3> | </h3>
)
ACT = 1
ACT.allWrap (
<h3 class="menu1-act"> | </h3>
)
CUR = 1
CUR.allWrap (
<h3 class="menu1-cur"> | </h3>
)
}
temp.menu_1.3 = TMENU
temp.menu_1.3 {
NO.allWrap (
<h4> | </h4>
)
ACT = 1
ACT.allWrap (
<h4 class="menu1-act"> | </h4>
)
CUR = 1
CUR.allWrap (
<h4 class="menu1-cur"> | </h4>
)
}

page = PAGE
page.typeNum = 0
page.stylesheet = styles.css

page.10 = COA
page.10.wrap (
  <div id="top">
  |
  </div>
)
page.10.1 = TEXT
page.10.1.value (
  <div id="logo"><img src="fileadmin/templates/res/logo_neutral.gif" alt="Logo"></div>
)
page.10.2 = TEXT
page.10.2 {
  field = title
  wrap (
  <div id="title">
  <h1>Sanda Fellowship Christ Church - <span>|</span></h1>
  </div>
  )
}
page.10.3 = TEXT
page.10.3.value (
  <div id="floatclearer"></div>
)

page.20 = COA
page.20.wrap (
  <div id="left">
  |
  </div>
)
page.20.1 < temp.menu_1

page.50 = COA
page.50.wrap (
  <div id="main">
  |
  </div>
  <div id="footer">
  </div>
)
page.50.2 < styles.content.get

Working Style Sheet Example

/* CSS-Styles for www.sanda-fcc.org - created by stut.de */

body{
font-family: georgia, palatino, serif;
        color: black;
        margin: 0em;
background-color: #FFFFFF;
}
div.floatclearer {
clear: both;
width: 0em;
height: 0em;
margin: 0em;
padding: 0em;
border: 0em;
}
img{
  border: 0px;
}
div#top {
background-color: #CCCC66;
padding-bottom: 1em;
margin: 0em;
}
div#logo {
  float:left;
  margin-left:1em;
  margin-top:1em;
  height:3em;
}
div#top h1 {
  margin-top:0em;
  margin-left:10em;
  padding-top:1em;
  font-size:150%;
}
div#left{
background-color: #CCCC66;
width:11em;
float:left;
padding: 1em 0em 5em 0em;
}

#main {
  background-color: #FFFFFF;
  margin-left: 11em;
  padding: 1em 1em 1em 1em;
}


div#navi{
  font-size:85%;
//  margin-left:10px;
}
#navi a:link {color:black;text-decoration:none;}
#navi a:visited {color:black;text-decoration:none;}
#navi a:active {background-color:black;color:white;text-decoration:none;}
#navi a:hover {background-color:black;color:white;text-decoration:none;}

#navi h2 {
  background-color: #FFCC00;
  padding: 0.2em 0em 0.2em 0.3em;
  margin: 0.6em 0.6em 0.2em 0.6em;
  font-size:100%;
}
#navi h2.menu1-act { 
//  background-color: #FFFF00;
//  border-color:black;
//  border-style:solid;
//  border-width:1px;
}

#navi .menu1-cur { 
  background-color: #FFFF00;
//  border-color:black;
//  border-style:solid;
//  border-width:1px;
}

#navi h3 {
  padding: 0.1em 0.3em 0.0em 0.3em;
  font-weight:normal;
  margin: 0.2em 0.6em 0.2em 0.6em;
  font-size:100%;
}
#navi h3.menu1-act { 
//  background-color: #FFCC00;
//  border-color:black;
//  border-style:solid;
//  border-width:1px;
}

#navi h4 {
  padding: 0.1em 0.3em 0.0em 0.3em;
  font-weight:normal;
  margin: 0.2em 0.6em 0.2em 1.5em;
  font-size:90%;
}
#navi h4.menu1-act { 
//  background-color: #FFCC00;
  border-color:black;
  border-style:solid;
  border-width:1px;
}

TemplaVoila (failed)

Members Only Area

Multi-Language Sites

Nice documentation can be found in http://typo3.org/documentation/tips-tricks/multi-language-sites-in-typo3/. I try do get things done easier by using the extension bb_languageselect:

Attemptimg (failed) a calendar with the extended calendar (calendar) extension

Much of this is borrowed from http://blog.undkonsorten.com/typo3-kalender-extension-extended-calendar-calendar (German language).

Manuals

To use the main advantage of a CMS, enabling non-technical browser users to edit web contents, these users need training and documentation. Here are my results of a web search for end-user friendly Typo3 frontend manuals (with emphasis on German language):

horizontal rule in rainbow colours (2,1 kB)

Home | Christian Missions | Christustreff Marburg | Pictures of Marburg | Job | Remote Communications | Linux OS | Psion page | Contact


Last updated: 11.06.2011 08:46:32 Martin Stut, email: email address as image, Marburg, Germany
URL: http://www.stut.de/typo3.html