Eigentlich habe ich nur den TV-Assistenten drauf los gelassen. Der bietet ein Menü, Submenü und Inhalt an. Hauptmenü auf div#links ul, Inhalt auf div#inhalt
Das menü ist mappingtype: element, editing type: typoscript object path
Der inhalt ist mappingtype: element, editing type: content elements
raus kommt dann das:
HTML-Code:
<div id="links"> <img class="logo" src="logo.gif" alt="Logo" border="0" /> <ul id="menu_links"></ul> <div id="inhalt">
Das menü fehlt, weil ich an dessen TS rumgepfuscht habe, aber warum fehlt das schließende div?
HTML-Code:
<T3DataStructure> <ROOT type="array"> <tx_templavoila type="array"> <title>ROOT</title> <description>Select ...</description> <tags>body</tags> </tx_templavoila> <type>array</type> <el type="array"> <field_content type="array"> <tx_templavoila type="array"> <title>Inhalt</title> <description>...</description> <sample_data type="array"> <numIndex index="0">Lorem ipsum.</numIndex> </sample_data> <eType>ce</eType> <tags>table:outer,td:inner,div:inner,p,h1,h2,h3,h4,h5</tags> <oldStyleColumnNumber type="integer">0</oldStyleColumnNumber> <TypoScript>
10= RECORDS
10.source.current=1
10.tables = tt_content
10.wrap = <!--TYPO3SEARCH_begin--> | <!--TYPO3SEARCH_end--> </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>Inhalt</label> </TCEforms> </field_content> <field_menu type="array"> <tx_templavoila type="array"> <title>Hauptmenü</title> <description>...</description> <sample_data type="array"> <numIndex index="0">[Menu goes here]</numIndex> </sample_data> <eType>TypoScriptObject</eType> <tags>table:inner,ul,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>Untermenü (if any)</title> <description>...</description> <sample_data type="array"> <numIndex index="0">[Menu goes here]</numIndex> </sample_data> <eType>TypoScriptObject</eType> <tags>table:inner,ul,div,tr,td</tags> <eType_EXTRA type="array"> <objPath>lib.subMenu</objPath> </eType_EXTRA> <TypoScriptObjPath>lib.subMenu</TypoScriptObjPath> </tx_templavoila> </field_submenu> </el> </ROOT>
Das mit dem submenü ist nicht so dringlich, weil ich das ja per TS machen kann, ich will da eh nicht so ein Haufen Klimborium drum rum haben, einfach nur ne Liste mit Unterliste. Ich habe mich nur gefragt, wie sowas prinzipiell gehen soll. Na, ist vielleicht für die Leute, die das Sub- nicht im Hauptmeü haben, sondern extra.