[Typo3-german] TemplaVoila Problem

Lars Fanter l.fanter at fanter-newmedia.de
Fri Sep 16 23:48:36 CEST 2005


Hallo NG!

Ich hab ein neues Typo3 (3.8.0.-Dummy) aufgesetzt und mit TemplaVoila ein 
neues Template angelegt.
Die Template Datei ist auch schon hoch gespielt und gemappt.
Die Website kann man unter:

http://heinzinger.fanter-newmedia.de

sehen.

Das grobe Layout ist folgendes:
________________________
|_______________________|
|                            Hauptmenü |
--------------------------------
|  sub   | Content                      |
| menü |                                   |
|_____|                                   |
|_______________________|

Folgendes Problem hab ich nun:

Weder das horizontale Hauptmenü (Entry Level 0) noch das Vertikale Submenü 
(Entry Level 1) werden gerendert.
Ich hab schon alles nachgeschaut, finde das Problem aber nicht. Der 
Contentbereich funktioniert einwandfrei. Also denke ich das es nicht am 
Mapping liegen kann.

Folgenden Code hab ich im Template (Typoscript):

## Menu [Begin]
lib.mainMenu = HMENU
lib.mainMenu.entryLevel = 0
lib.mainMenu.wrap = <table  border="0" cellspacing="0" 
cellpadding="0"><tr><td width="10"><img 
src="fileadmin/templates/images/blank.gif" width="10" height="1"></td> | 
</tr></table>
lib.mainMenu.1 = TMENU
lib.mainMenu.1 {
    NO.allWrap = <td><div class="menu1-level1-off"> | </div></td>
    ACT = 1
    ACT.allWrap = <td><div class="menu1-level1-on"> | </div></td>
}
## Menu [End]
## SubMenu [Begin]
lib.subMenu = HMENU
     lib.subMenu.entryLevel = 1
     lib.subMenu.1 = TMENU
     lib.subMenu.1 {
    NO.allWrap = <div class="menu1-level1-off"> | </div>
    ACT = 1
    ACT.allWrap = <div class="menu1-level1-on"> | </div>
}
## SubMenu [End]
page = PAGE
page.typeNum = 0
page.10 = USER
page.10.userFunc = tx_templavoila_pi1->main_page

Und das ist mein Datastructure XML:

<T3DataStructure>
    <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>
            <tags>body</tags>
        </tx_templavoila>
        <type>array</type>
        <el type="array">
            <field_content type="array">
                <tx_templavoila type="array">
                    <title>Main Content Area</title>
                    <description>Pick the HTML element in the template where 
you want to place the main content of the site.</description>
                    <sample_data type="array">
                        <numIndex index="0">Lorem ipsum dolor sit amet, 
...</numIndex>
                    </sample_data>
                    <eType>ce</eType>
                    <tags>table:outer,td:inner,div:inner,p,h1,h2,h3,h4,h5</tags>
                    <TypoScript>
 10= RECORDS
 10.source.current=1
 10.tables = tt_content
       </TypoScript>
                </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>Main Content Area</label>
                </TCEforms>
            </field_content>
            <field_menu type="array">
                <tx_templavoila type="array">
                    <title>Main menu</title>
                    <description>Pick the HTML container element where you 
want the automatically made menu items to be placed.</description>
                    <sample_data type="array">
                        <numIndex index="0">[Menu goes here]</numIndex>
                    </sample_data>
                    <eType>TypoScriptObject</eType>
                    <tags>table:inner,div,tr,td</tags>
                    <eType_EXTRA type="array">
                        <objPath>lib.mainMenu</objPath>
                    </eType_EXTRA>
                    <TypoScriptObjPath>lib.mainMenu</TypoScriptObjPath>
                </tx_templavoila>
            </field_menu>
            <field_submenu type="array">
                <tx_templavoila type="array">
                    <title>Sub menu (if any)</title>
                    <description>Pick the HTML container element where you 
want the automatically made submenu items to be placed.</description>
                    <sample_data type="array">
                        <numIndex index="0">[Menu goes here]</numIndex>
                    </sample_data>
                    <eType>TypoScriptObject</eType>
                    <tags>table:inner,div,tr,td</tags>
                    <eType_EXTRA type="array">
                        <objPath>lib.subMenu</objPath>
                    </eType_EXTRA>
                    <TypoScriptObjPath>lib.subMenu</TypoScriptObjPath>
                </tx_templavoila>
            </field_submenu>
        </el>
    </ROOT>
</T3DataStructure>

Vielleicht sieht ja jemand hier das Problem. Ich komm einfach nicht weiter.

Beste Grüße und vielen Dank schon mal im voraus!

Lars 





More information about the TYPO3-german mailing list