[TYPO3-templavoila] New DS/TO problem, typoscript won't render

Edwin Blokker a.stoutjesdijk at chello.nl
Fri Jun 15 22:57:02 CEST 2007


Hello,

I have the following problem: I'm using templavoila and wanted to update 
my site to a new layout. So I:

- made a new DS/TO
- mapped all the elements
- added the new typoscript template (as root) to the root page of the 
website
- set the root page to use the new DS/TO
- set the old typoscript template to 'deactivated'

Now, when I view the site in the FE, the new layout gets rendered, but 
only the static HTML part of it and the content elements. So the problem 
is that all the parts that should be generated through typoscript, like 
the header, footer, menu's, etc. just don't render.

I'm trying to solve this for half a day already, without success. Does 
someone know what could be wrong? I really hope so..

Thanks,
Edwin.

PS. Here is some of the code:

DS "layout2":
<?xml version="1.0" encoding="iso-8859-1" standalone="yes" ?>
<T3DataStructure>
     <meta type="array">
         <langDisable>1</langDisable>
     </meta>
     <ROOT type="array">
         <tx_templavoila type="array">
             <title>ROOT</title>
             <description>Select the HTML element on the page which you 
want to be the overall container element for the template.</description>
         </tx_templavoila>
         <type>array</type>
         <el type="array">
             <field_header type="array">
                 <tx_templavoila type="array">
                     <title>header</title>
                     <sample_data type="array">
                         <numIndex index="0"></numIndex>
                     </sample_data>
                     <eType>TypoScriptObject</eType>
                     <TypoScriptObjPath>lib.head</TypoScriptObjPath>
                 </tx_templavoila>
             </field_header>
             <field_hnav type="array">
                 <tx_templavoila type="array">
                     <title>hnav</title>
                     <sample_data type="array">
                         <numIndex index="0"></numIndex>
                     </sample_data>
                     <eType>TypoScriptObject</eType>
                     <TypoScriptObjPath>lib.hnav</TypoScriptObjPath>
                 </tx_templavoila>
             </field_hnav>
             <field_content type="array">
                 <tx_templavoila type="array">
                     <title>content</title>
                     <sample_data type="array">
                         <numIndex index="0"></numIndex>
                     </sample_data>
                     <eType>ce</eType>
                     <TypoScript>
     10= RECORDS
     10.source.current=1
     10.tables = tt_content
     10.wrap = &lt;!--TYPO3SEARCH_begin--&gt; | &lt;!--TYPO3SEARCH_end--&gt;
                     </TypoScript>
                     <oldStyleColumnNumber 
type="integer">0</oldStyleColumnNumber>
                 </tx_templavoila>
                 <TCEforms type="array">
                     <config type="array">
                         <type>group</type>
                         <internal_type>db</internal_type>
                         <allowed>tt_content</allowed>
                         <size>5</size>
                         <maxitems>200</maxitems>
                         <minitems>0</minitems>
                         <multiple>1</multiple>
                         <show_thumbs>1</show_thumbs>
                     </config>
                     <label>content</label>
                 </TCEforms>
             </field_content>
             <field_vnav type="array">
                 <tx_templavoila type="array">
                     <title>vnav</title>
                     <sample_data type="array">
                         <numIndex index="0"></numIndex>
                     </sample_data>
                     <eType>TypoScriptObject</eType>
                     <TypoScriptObjPath>lib.vnav</TypoScriptObjPath>
                 </tx_templavoila>
             </field_vnav>
             <field_kruimel type="array">
                 <tx_templavoila type="array">
                     <title>kruimel</title>
                     <sample_data type="array">
                         <numIndex index="0"></numIndex>
                     </sample_data>
                     <eType>TypoScriptObject</eType>
                     <TypoScriptObjPath>lib.kruimel</TypoScriptObjPath>
                 </tx_templavoila>
             </field_kruimel>
             <field_foot type="array">
                 <tx_templavoila type="array">
                     <title>foot</title>
                     <sample_data type="array">
                         <numIndex index="0"></numIndex>
                     </sample_data>
                     <eType>TypoScriptObject</eType>
                     <TypoScriptObjPath>lib.foot</TypoScriptObjPath>
                 </tx_templavoila>
             </field_foot>
             <field_leftcontent type="array">
                 <tx_templavoila type="array">
                     <title>left content</title>
                     <sample_data type="array">
                         <numIndex index="0"></numIndex>
                     </sample_data>
                     <eType>ce</eType>
                     <TypoScript>
     10= RECORDS
     10.source.current=1
     10.tables = tt_content
     10.wrap = &lt;!--TYPO3SEARCH_begin--&gt; | &lt;!--TYPO3SEARCH_end--&gt;
                     </TypoScript>
                     <oldStyleColumnNumber 
type="integer">1</oldStyleColumnNumber>
                 </tx_templavoila>
                 <TCEforms type="array">
                     <config type="array">
                         <type>group</type>
                         <internal_type>db</internal_type>
                         <allowed>tt_content</allowed>
                         <size>5</size>
                         <maxitems>200</maxitems>
                         <minitems>0</minitems>
                         <multiple>1</multiple>
                         <show_thumbs>1</show_thumbs>
                     </config>
                     <label>left content</label>
                 </TCEforms>
             </field_leftcontent>
         </el>
     </ROOT>
</T3DataStructure>


TYPOSCRIPT SETUP "layout2":
# Default PAGE object:
page = PAGE
page.typeNum = 0
page.relPathPrefix = fileadmin/templates
page.10 = USER
page.10.userFunc = tx_templavoila_pi1->main_page

# Header
lib.head = TEXT
lib.head.value = {$head}

# Hnav
lib.hnav = HMENU
lib.hnav {
10 = TMENU
10 {
wrap = <ul>|</ul>
# No
NO.ATagBeforeWrap = 1
NO.linkWrap = <span>|</span>
NO.allWrap = <li>|</li>
NO.stdWrap.htmlSpecialChars = 1
# Act
ACT = 1
ACT.ATagBeforeWrap = 1
ACT.linkWrap = <span>|</span>
ACT.allWrap = <li class="act">|</li>
ACT.htmlSpecialChars = 1
}

# Vnav
lib.vnav = COA
lib.vnav.10 = TEXT
lib.vnav.10 {
wrap = <div id="vnavtitle">|:</div>
data = leveltitle:1
}
lib.vnav.20 = HMENU
lib.vnav.20 {
entryLevel = 1
# 1st level
1 = TMENU
1 {
wrap = <ul id="vnav"> | </ul>
# No
NO.wrapItemAndSub = <li class="vl1no">|</li>
NO.stdWrap.htmlSpecialChars = 1
# Act
ACT = 1
ACT.stdWrap.htmlSpecialChars = 1
ACT.wrapItemAndSub = <li class="vl1act">|</li>
# IfSub
IFSUB = 1
IFSUB.stdWrap.htmlSpecialChars = 1
IFSUB.wrapItemAndSub = <li class="vl1nosub">|</li>
# ActIfSub
ACTIFSUB = 1
ACTIFSUB.stdWrap.htmlSpecialChars = 1
ACTIFSUB.wrapItemAndSub = <li class="vl1actsub">|</li>
# CurSub
CURIFSUB = 1
CURIFSUB.stdWrap.htmlSpecialChars = 1
CURIFSUB.wrapItemAndSub = <li class="vl1cursub">|</li>
}
# 2nd level
2 = TMENU
2.wrap = |
2 {
# No
NO.wrapItemAndSub = <ul class="vl2no"><li>|</li></ul>
NO.stdWrap.htmlSpecialChars = 1
# Act
ACT = 1
ACT.stdWrap.htmlSpecialChars = 1
ACT.wrapItemAndSub = <ul class="vl2act"><li>|</li></ul>
# IfSub
IFSUB = 1
IFSUB.stdWrap.htmlSpecialChars = 1
IFSUB.wrapItemAndSub = <ul class="vl2nosub"><li>|</li></ul>
# ActIfSub
ACTIFSUB = 1
ACTIFSUB.stdWrap.htmlSpecialChars = 1
ACTIFSUB.wrapItemAndSub = <ul class="vl2actsub"><li>|</li></ul>
# CurIfSub
CURIFSUB = 1
CURIFSUB.stdWrap.htmlSpecialChars = 1
CURIFSUB.wrapItemAndSub = <ul class="vl2cursub"><li>|</li></ul>
}
# 3th level
3 = TMENU
3.wrap = |
3 {
# No
NO.stdWrap.htmlSpecialChars = 1
NO.wrapItemAndSub = <ul class="vl3no"><li>|</li></ul>
# Act
ACT.stdWrap.htmlSpecialChars = 1
ACT.wrapItemAndSub = <ul class="vl3act"><li>|</li></ul>
}

# Kruimelpad
lib.kruimel = HMENU
lib.kruimel.includeNotInMenu = 1
lib.kruimel.special = rootline
lib.kruimel.1 = TMENU
lib.kruimel.1 {
wrap = <span class="kruimelspan">U bevindt zich hier:</span>|
NO.allWrap = |*| &nbsp; | &nbsp;<img src="arrowact.gif" alt="pijl" /> |*|
CUR = 1
CUR.allWrap = |*| <span class="kruimelspan">&nbsp;<em> | </em></span> |*|
CUR.doNotLinkIt = 1
}

# Footer
lib.foot = TEXT
lib.foot.value = {$foot}

Etc...


More information about the TYPO3-project-templavoila mailing list