Zum Inhalt springen

Template bestehend nur aus Menüleiste

Erstellt am 29. April 2008 · 2 Antworten · letzte Antwort am 23. Mai 2008

Tags: Templates & Layouts, Frage

tHaHooL ·

Ich habe auf einer Testinstallation ein Template von Mediatech am laufen, hier mal der Code

<head>
<title>Zen Wire 1 column</title>
</head>

	<!-- ###DOCUMENT_BODY### START-->

	<div id="container">
	
	<div id="header">
	<div id="masthead">
	
	<div id="nav">
	<!-- ###TOPNAV### START -->
	<!-- ###TOPNAV### END -->
	</div>
	
	<!-- end #masthead --> 
	</div>
	
	<div id="search">
	<!-- ###SEARCH_FORM### START -->
	<!-- ###SEARCH_FORM### END-->
	</div>
	
	<div id="advsearch-link">
	<!-- ###ADVSEARCH-LINK### START -->
	<!-- ###ADVSEARCH-LINK### END-->
	</div>
	
	<div id="member-links">
	<!-- ###MEMBER-LINKS### START -->
	<!-- ###MEMBER-LINKS### END-->
	</div>
	
	<!-- end #header --> 
	</div>

	<div id="main-content1col">

	<div id="content-navigation">
	
	<div id="print">
	<!-- ###PRINT### START -->
	<!-- ###PRINT### END-->
	</div>
	
	<div id="tipafriend">
	<!-- ###TIPAFRIEND### START -->
	<!-- ###TIPAFRIEND### END-->
	</div>
	
	<div id="pdf">
	<!-- ###PDF_LINK### START -->
	<!-- ###PDF_LINK### END-->
	</div>
	
	<div id="breadcrumb">
	<!-- ###BREADCRUMB### START -->
	<!-- ###BREADCRUMB### END-->
	</div>
	<!-- end breadcrumb -->
	
	</div>
	<!-- end content-navigation --> 
	
	<!--TYPO3SEARCH_begin-->
	
	<div id="main-content">
	<!-- ###CONTENT### START-->
	<h2>- Title -</h2>
	<p>this is the where center content goes</p>
	<!-- ###CONTENT### END-->
	</div>
	
	<!--TYPO3SEARCH_end-->
	
	</div>
	<!-- end #main-content1col -->
	
	<div id="border-content">
	<!--###CONTENT_BORDER### START-->
	<!--###CONTENT_BORDER### STOP-->
	</div>

	<div id="footer">
	<!--###COPYRIGHT-LINKS### START-->
	<h2>- Title -</h2>
	<p>this is the where footer content goes</p>
	<!--###COPYRIGHT-LINKS### STOP-->
	</div>

	<!-- end #container --> 
	</div>

	<div id="footer2"></div>

	<!-- ###DOCUMENT_BODY### END-->
</body>
</html

Ich bräuchte nun ein Template welches nur aus der Menüzeile besteht. Der Gedanke war diese Menüzeile dann in externe Anwendungen - konkret gehts um ein Forum und XT:Commerce - einzubinden.

Leider funktioniert mein Template, welches nun so aussieht nicht:

<head>
<title>Zen Wire Menu only</title>
</head>

	<!-- ###DOCUMENT_BODY### START-->

	<div id="container">
	
	<div id="header">
	<div id="masthead">
	
	<div id="nav">
	<!-- ###TOPNAV### START -->
	<!-- ###TOPNAV### END -->
	</div>
	
	<!-- end #masthead --> 
	</div>
	
</body>
</html>

Kann mir da jemand auf die Sprünge helfen?
Dankeschön 😃

just2b ·

Hallo,

bei dem einzigen Fehlercode "Funktioniert leider nicht" gibts nur eine mögliche Antwort: "du machst was falsch"

Georg
PS: Wie soll man wissen was wenn du keine Infos lieferst.... zum Mechaniker nimmst du sicher auch das Auto nicht mit

tHaHooL ·

Okay, ich versuche mich ein bisschen deutlicher auszudrücken:

Wenn man sich die Menüleiste auf www.mediatech.net ansieht, dann würde ich gerne NUR dieses Menü (<UL> .adxm menu) über eine seperate PHP Seite ausgeben. Konkret gehts mir dadrum, dass ich dieses Menü in einen XT:Commerce Shop einbinde, so dass der Shop quasi "embedded" ist.
Im Template des Shops könnte ich diese leere Menü Seite per include oder iFrame einbinden. Das selbe soll noch in einem Forum geschehen.

Das war mal so der Gedanke, evtl. gibts da ja auch noch elegantere Wege.

Mein Versuch (siehe oben) ein Template zu erzeugen, welches nur das Menü darstellt ist leider fehlgeschlagen.
Wenn ich das Template darstelle ist nur folgender Quelltext im Browser ersichtlich:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-US">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />

<!-- 
	This website is powered by TYPO3 - inspiring people to share!
	TYPO3 is a free open source Content Management Framework initially created by Kasper Skaarhoj and licensed under GNU/GPL.
	TYPO3 is copyright 1998-2006 of Kasper Skaarhoj. Extensions are copyright of their respective owners.
	Information and contribution at http://typo3.com/ and http://typo3.org/
-->

	<link rel="stylesheet" type="text/css" href="typo3temp/stylesheet_8bc6e25536.css" />
	<link rel="stylesheet" type="text/css" href="fileadmin/templates/zwire/css/layout_03.css" />
	<link rel="stylesheet" type="text/css" href="fileadmin/templates/zwire/css/ADxMenu_02.css" />
<title>Disclaimer</title>
	<!--[if lte IE 6]>
	<style type="text/css" media="screen, tv, projection"> 
	@import "/fileadmin/templates/zwire/css/ie6_02.css";
	</style>
	<script type="text/javascript" src="/fileadmin/templates/zwire/scripts/ADxMenu_02.js"></script>
	<![endif]-->

	<meta name="generator" content="TYPO3 4.1 CMS" />
	<script type="text/javascript" src="typo3temp/javascript_8d985c2683.js"></script>


</head>
<body class="adxmenu">

</body>
</html>

Normalerweise (mit einem funktionierenden Template) sieht der Quelltext so aus:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-US">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />

<!-- 
	This website is powered by TYPO3 - inspiring people to share!
	TYPO3 is a free open source Content Management Framework initially created by Kasper Skaarhoj and licensed under GNU/GPL.
	TYPO3 is copyright 1998-2006 of Kasper Skaarhoj. Extensions are copyright of their respective owners.
	Information and contribution at http://typo3.com/ and http://typo3.org/
-->

	<link rel="stylesheet" type="text/css" href="typo3temp/stylesheet_8bc6e25536.css" />
	<link rel="stylesheet" type="text/css" href="fileadmin/templates/zwire/css/layout_03.css" />
	<link rel="stylesheet" type="text/css" href="fileadmin/templates/zwire/css/ADxMenu_02.css" />
<title>Disclaimer</title>
	<!--[if lte IE 6]>
	<style type="text/css" media="screen, tv, projection"> 
	@import "/fileadmin/templates/zwire/css/ie6_02.css";
	</style>
	<script type="text/javascript" src="/fileadmin/templates/zwire/scripts/ADxMenu_02.js"></script>
	<![endif]-->

	<meta name="generator" content="TYPO3 4.1 CMS" />
	<script type="text/javascript" src="typo3temp/javascript_8d985c2683.js"></script>



</head>
<body class="adxmenu">



	<div id="container">
	
	<div id="header">

	<div id="masthead">
	
	<div id="nav">
	<ul class="adxm menu"><li class="hover2"><a href="index.php?id=1306">Home</a></li><li class="hover2"><a href="index.php?id=1305">xxxxxx</a></li><li class="hover2"><a href="index.php?id=1308">xxxxxx</a><div class="hover2"><ul><li><a href="index.php?id=1309">xxxxxx xxxxxx</a></li><li><a href="index.php?id=1310">xxxxxx xxxxxx</a></li></ul></div></li><li class="hover2"><a href="index.php?id=1317">Online Demo</a></li><li class="hover2"><a href="index.php?id=1313">Zubehör</a><div class="hover2"><ul><li><a href="index.php?id=1329">xxxxxx(xxxxxx)</a></li><li><a href="index.php?id=1330">xxxxxx</a></li></ul></div></li><li class="hover2"><a href="index.php?id=1307">Forum</a><div class="hover2"><ul><li><a href="index.php?id=1325" target="_blank">in neuen Fenster öffnen</a></li></ul></div></li><li class="hover2"><a href="index.php?id=1312">Shop</a><div class="hover2"><ul><li><a href="index.php?id=1324" target="_blank">im neuen Fenster öffnen</a></li></ul></div></li><li class="hover2"><a href="index.php?id=1315">xxxxxx Partner</a></li><li class="hover2"><a href="index.php?id=1293">Kontakt</a></li><li class="hover2"><a href="index.php?id=1318">Downloads / xxxxxx</a></li><li class="hover2"><a href="index.php?id=1292">AGB</a></li></ul>

	</div>
	
	<!-- end #masthead --> 
	</div>
	
	<div id="search">
	<form action="index.php?id=6" method="post">
	<div class="search">
	<input id="searchfield" class="searchfield" type="text" name="tx_indexedsearch[sword]" value="" />
	<input id="searchimage" class="searchimage" type="image" src="fileadmin/templates/zwire/images/search_02.gif" title="Search" alt="Search" />
	<input type="hidden" name="tx_indexedsearch[_sections]" value="0" />

	<input type="hidden" name="tx_indexedsearch[_freeIndexUid]" value="_" />
	<input type="hidden" name="tx_indexedsearch[pointer]" value="0" />
	<input type="hidden" name="tx_indexedsearch[ext]" value="" />
	<input type="hidden" name="tx_indexedsearch[type]" value="0" />
	<input type="hidden" name="tx_indexedsearch[defOp]" value="0" />
	<input type="hidden" name="tx_indexedsearch[media]" value="-1" />
	<input type="hidden" name="tx_indexedsearch[order]" value="rank_flag" />
	<input type="hidden" name="tx_indexedsearch[group]" value="flat" />
	<input type="hidden" name="tx_indexedsearch[lang]" value="-1" />

	<input type="hidden" name="tx_indexedsearch[desc]" value="0" />
	<input type="hidden" name="tx_indexedsearch[results]" value="10" />
	</div>
</form>
	</div>
	
	<div id="advsearch-link">
	<b>Search:</b> <a href="index.php?id=5&amp;tx_indexedsearch[ext]=1">Advanced Search</a>
	</div>

	
	<div id="member-links">
	<b>Members:</b> <a href="index.php?id=5">Sign In</a> | <a href="index.php?id=12">Register</a>
	</div>
	
	<!-- end #header --> 
	</div>

	<div id="main-content1col">

	<div id="content-navigation">
	
	<div id="print">
	<a href="http://xxxxxx.de/cms/index.php?id=1287&amp;type=98" onfocus="blurLink(this);" onclick="window.open('http://xxxxxx.de/cms/index.php?id=1287&amp;type=98','print','resizable=yes,toolbar=no,scrollbars=yes,menubar=yes,width=600,height=500'); return false;" target="_blank"><img src="fileadmin/templates/zwire/images/printer_02.gif" alt="Printable version" title="Printable version" style="border-width:0px;" /> Print</a>
	</div>
	
	<div id="tipafriend">
	<img src="fileadmin/templates/zwire/images/email_02.gif" alt="Email to Friend" title="Email to Friend" style="border-width:0px;" /> Email
	</div>

	
	<div id="pdf">
	<a href="index.php?id=1287&amp;type=123&amp;filename=file.pdf"><img src="fileadmin/templates/zwire/images/pdf_02.gif" alt="Download PDF File" title="Download PDF File" style="border-width:0px;" /> PDF</a>
	</div>
	
	<div id="breadcrumb">
	<a href="index.php?id=1277">xxxxxx</a> &#187; &nbsp;Disclaimer
	</div>
	<!-- end breadcrumb -->

	
	</div>
	<!-- end content-navigation --> 
	
	<!--TYPO3SEARCH_begin-->
	
	<div id="main-content">
	<h2>Disclaimer and Warranty</h2><p>The example pages in this site demo, including sys folders, user groups, TypoScript&nbsp; and other data are imported via a T3D file. The T3D file is meant only for fresh TYPO3 installations NOT existing TYPO3 web sites. Please do not attempt to import the T3D file on existing TYPO3 installations unless you do so at your own risk and understand what you are doing!
</p>
<p>Zen Wireframe core XHTML templates and Typoscript are used for building production web sites for Mediatech Consulting. Mediatech Consulting, its employees, partners and affiliates are not responsible for software available through TYPO3 and the <a href="http://typo3.org/extensions/">TYPO3 extension repository</a>. If you find bugs or require software support, please contact the original software author(s).<br />

</p>
<p>The extensions in the&nbsp;<a href="http://typo3.org/extensions/">TYPO3 extension repository</a> are free to use. Although they are reviewed for possible security issues, their installation might cause problems in your TYPO3 installation or not work as expected. Neither the respective authors, the reviewers, nor the providers of this website or TYPO3 take any responsibility for problems resulting from the use of code provided by this repository.
</p>
<p> The XHTML files contained in Zen Wireframe and Typoscript are distributed in the hope that it will be useful,&nbsp; but WITHOUT ANY WARRANTY; without even the implied warranty of&nbsp; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. If you find a bug or issues, please report them either at our <a href="http://www.mediatech.net/typo3_forum.html">forum</a>, <a href="http://www.mediatech.net/contact.html">contact form</a> or please <a href="javascript:linkTo_UnCryptMailto('ocknvq,uwrrqtvBogfkcvgej0pgv');">send an email</a>.<br />  </p>

	</div>
	
	<!--TYPO3SEARCH_end-->
	
	</div>
	<!-- end #main-content1col -->
	
	<div id="border-content">
	
	</div>

	<div id="footer">
	<div id="footertext">Copyright &nbsp;2008&nbsp;COMWORKS it solutions ::&nbsp;<span class="footerlink"><a href="index.php?id=1292" title="the" target="<--" class="where" >Terms of Use</a></span> ::&nbsp;<span class="footerlink"><a href="index.php?id=1287" title="Where" target="#" class="<--" >Privacy Policy</a></span></div>

	</div>

	<!-- end #container --> 
	</div>

	<div id="footer2"></div>

	
</body>
</html>

Wenn das ganze so nicht umsetzbar ist, okay... dann gehts leider nicht, aber wenn doch bin ich um jeden Tipp / Hinweis dankbar.