Hie Leutz, irgendwie bin ich zu Blond verschachtelte DIV Tags zu mappen. Tempavoila bringt mir mir immer einen Fehler: div#inhaltscontainer div.inhalt[1] div.recht[1]/INNER
Mein HTML Template sieht folgendermaßen aus:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Unbenanntes Dokument</title>
<link href="dsl_intranet.css" rel="stylesheet" type="text/css" />
</head>
<body>
<p><span class="klammer">[</span><span class="dsl">dsl-factory.de</span><span class="klammer">]
</span></p>
<hr noshade="noshade" /><br />
<div class="seite">
<div id="menues">
<div class="hauptmenue">"hauptmenü"</div><br />
<div class="untermenue">"untermenü"</div>
</div>
<div id="inhaltscontainer">
<div class="inhalt"> "inhalt"
<div class="recht">"copyright"</div>
</div>
</div>
</div>
</body>
</html>
Hatte jemand schon mal das selbe Problem? Wenn ja, wie habt ihr es gelöst?
MfG
keymaster
hi keymaster
ich denke dein problem ist, dass du weiter oben ein div mit set inner gemappt hast. set inner bedeutet, dass der komplette inhalt innerhalb dieses div´s ausgeschnitten wird. TV findet dann das andere div fuer seine anweisungen nicht. deswegen der fehler. musst mal schaun ob du mit einem container element weiter kommst.
poste doch mal deine DS. vielleicht kann ich dir dann weiter helfen
gruss kilian
Danke erst einmal für deine Antwort, habe das mit dem Outer so gemacht, wie du gesagt hast. hat dann auch funktioniert. Hier nochmal meine DS:
<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, consectetuer adipiscing elit. Pellentesque porta erat vitae nisl. In hac habitasse platea dictumst. Aliquam ac urna. Morbi magna mauris, semper ut, varius in, convallis vitae, nulla. Proin massa lorem, mollis eget, rutrum vitae, commodo id, risus. Curabitur scelerisque risus eget odio. Proin laoreet blandit elit. Aenean varius, sapien laoreet dapibus volutpat, risus lorem ornare wisi, lobortis venenatis nisl augue sed purus. Nam suscipit viverra justo. Suspendisse tincidunt. Nullam vel quam.</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>
Und gleich nochmal ne andere Frage, ich bekomme es einfach nicht hin, dass unter der ersten menü ebene die zweite menü ebene eingeblendet wird. Wollte das alles über DIV Tags lösen, da ich weg will von Tabellen. Aber irgendwie bekomme ich das einfach nicht hin. 😢
bin mir nicht ganz sicher ob ich dich richtig verstanden habe.
dein lib.subMenu definierst du doch in der rootsetup. dort kannst du das ganze doch wrappen.
würde ich aber folgendermassen machen:
lib.mainMenu.1{}
lib.mainMenu.2{} usw.
die kannst du dann mit ul und li wrappen. so wird dir das ganze sauber ohne tables ausgegeben. wenn du es nebeneinander haben willst solltest du dir was mit span ueberlegen.
gruss kilian
Danke für die Info, werd es gleich mal ausprobieren.
lg keymaster