[Typo3] A question on templates

John Dow John.Dow at navyblue.com
Fri Feb 18 22:03:55 CET 2005


Good evening, list,

I'm very much a newbie here and this is my first posting, so please bear with me :)

I am having difficulty creating a basic template with editable sections. I have tried following the examples in the documentation but have only been able to create one editable content area using the following Setup code:

page = PAGE
page.typeNum = 0
page.stylesheet = fileadmin/template/main/css/homepage_import.css

page.bodyTag = <body>
page.1 = TEMPLATE
page.1.marks.PAGE_UID = TEXT
page.1.marks.PAGE_UID.field = uid

page.1  {
   template = FILE
   template.file = fileadmin/template/main/test.html
   workOnSubpart = DOCUMENT_BODY
   subparts.CONTENT < styles.content.get
}

Please could someone advise how I can make other areas of my html file editable? For example, I have sections referenced by ids such as <div id=”news_panel_1”> and <div id=”news_panel_2”> in my html file. I am having great difficulty finding out how to use the typoscript syntax to reference these elements in the Setup area of the template. They are not showing up as being editable areas when I try to reference them in a similar way to the subparts.content syntax. I have tried using the Typoscript reference manual but feel it is more advanced than the level I require!

Any assistance would be greatly appreciated.

Thanks all


John Dow
 
---
Navyblue supports London's bid to host the 2012 Olympic Games and Paralympic Games.
Add your own support for London 2012 at http://www.london2012.org



More information about the TYPO3-english mailing list