Zum Inhalt springen

Menu positionieren

Erstellt am 7. April 2005 · Noch keine Antworten

Tags: Frage

gunshot-hova ·

Hallo ihr Speziallisten

Im Moment arbeite ich gerade für die kantonale Verwaltung bei uns und sollte möglichst schnell eine neue Homepage erstellen.

Nun zu meiner Frage: Ich schaffe es einfach nicht ein Menu zu erstellen, welches sich dort positioniert wo ich es haben will...

Der TypoScript:

# Seitendefinition
#####################################################
page = PAGE
page {
typeNum =0
bodyTag = <body bgcolor="#808080">
meta.AUTHOR = gun$hot-hova webprodukkktion
meta.DESCRIPTION = HIER STEHT EINE BESCHREIBUNG
}

# Menu
#####################################################
page.40 = HMENU
page.40.1 = TMENU
page.40.1.wrap = | <BR><BR>
page.40.1.NO {
linkWrap = &nbsp;<font color=yellow> | </font>&nbsp;
ATagBeforeWrap = 1
}

# Auto-Parser Konfiguration
#####################################################
plugin.tx_automaketemplate_pi1 {

# Read the template file
content = FILE
content.file = fileadmin/template/main/vorlage.html

# Here we define which elements in the HTML that
# should be wrapped in subpart-comments

elements {
BODY.all = 1
BODY.all.subpartMarker = DOCUMENT_BODY
HEAD.all = 1
HEAD.all.subpartMarker = DOCUMENT_HEADER
HEAD.rmTagSections = title
TD.all = 1
}

# Prefix all relative paths with this value
relPathPrefix = fileadmin/template/main/

}

# Haupt-TEMPLATE cObject für BODY
#####################################################
temp.mainTemplate = TEMPLATE
temp.mainTemplate {

# Feeding the content from the Auto-parser to the TEMPLATE cObject
template =< plugin.tx_automaketemplate_pi1

# Select only the content between the body-tags
workOnSubpart = DOCUMENT_BODY

# Substitute the ###SEITENTITEL### subpart with some example content
subparts.SEITENTITEL = TEXT
subparts.SEITENTITEL.field = title

# Substitute the ###CONTENT_HEADER### subpart with some example content
subparts.CONTENT_HEADER = TEXT
subparts.CONTENT_HEADER.value = Überschrift

}

# Haupt-TEMPLATE cObject für HEAD
#####################################################

temp.headTemplate = TEMPLATE
temp.headTemplate {

# Feeding the content from the Auto-parser to the TEMPLATE cObject
template =<plugin.tx_automaketemplate_pi1

# Select only the content between the head-tags
workOnSubpart = DOCUMENT_HEADER
}

}
#Kopiert den Inhalt vom TEMPLATE für die body-section
#####################################################
page.10 < temp.mainTemplate

#Kopiert den Inhalt vom TEMPLATE für die head-section
#####################################################
page.headerData.10 < temp.headTemplate

Also hier, das HTML (mit dem Auto-Parser "Typo3"-fähig gemacht):

<!DOCTYPE html
PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />

<!--
This website is brought to you by TYPO3 - get.content.right
TYPO3 is a free open source Content Management Framework created by Kasper Skaarhoj and licensed under GNU/GPL.
TYPO3 is copyright 1998-2004 of Kasper Skaarhoj. Extensions are copyright of their respective owners.
Information and contribution at http://www.typo3.com
-->

<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">

<link href="fileadmin/template/main/style.css" rel="stylesheet" type="text/css">

<title>Root</title>
<meta name="generator" content="TYPO3 3.7 CMS" />
<meta name="AUTHOR" content="gun$hot-hova webprodukkktion" />
<meta name="DESCRIPTION" content="HIER STEHT EINE BESCHREIBUNG" />
<script type="text/javascript">
/*<![CDATA[*/
<!--
browserName = navigator.appName;
browserVer = parseInt(navigator.appVersion);
var msie4 = (browserName == "Microsoft Internet Explorer" && browserVer >= 4);
if ((browserName == "Netscape" && browserVer >= 3) || msie4 || browserName=="Konqueror") {version = "n3";} else {version = "n2";}
// Blurring links:
function blurLink(theObject) { //
if (msie4) {theObject.blur();}
}

// -->
/*]]>*/
</script>

</head>
<body bgcolor="#808080">

<br>

<center>

<!-- DOCUMENT_BODY -->

<table border="0" cellpadding="1" cellspacing="0" bgcolor="#808080" width="679">
<tr>
<td colspan="2"><img src="fileadmin/template/main/../../images/jugendow_neu.gif" width="692" height="99"></td>
</tr>
<tr>
<td colspan="2">
<!-- Header -->
<table border="0" cellpadding="1" cellspacing="0" bgcolor="#000000" width="100%">
<tr>
<td> <table border="0" cellpadding="0" cellspacing="0" bgcolor="#808080" width="100%">
<tr>
<td bgcolor="#354463"><h3 align="right">::Root</h3></td>
</tr>
<tr>
<td height="11" align="right" bgcolor="#354463"class="smallheader"><!--###smallheader### begin -->
<div align="left">"Denken reicht nich mein Junge! Handle um
deinen Tr&auml;umen Fl&uuml;gel zu verleihen" - A. Butman</div><!--###smallheader### end --></td>
</tr>
</table></td>
</tr>
</table>
<!-- End Header -->
</td>
</tr>
<tr>
<td>
<!-- Menu -->
<table border="0" cellpadding="1" cellspacing="0" bgcolor="#000000" width="100%">
<tr>
<td> <table cellspacing="1" cellpadding="2" border="0" bgcolor="#354463" width="100%">
<tr>
<td bgcolor="#354463" class="small" width="150"><!--###small### begin --> NAVIGATION
>> <!--###small### end --></td>
</tr>
</table></td>
</tr>
</table></td>
<td> <table width="587" height="28" border="0" cellpadding="1" cellspacing="0" bgcolor="#000000">
<tr>
<td> <table class="navigation" width="586" height="25" border="0" cellpadding="2" cellspacing="1" bgcolor="#354463">
<tr>
<td width="50" height="23" align="center" bgcolor="#5F7797"class="navigation" onmouseover="this.style.backgroundColor='#354463';" onmouseout="this.style.backgroundColor='#5F7797'"><!--###navigation### begin --><a href="fileadmin/template/main/index.htm"><font color="#e9f2fc">home</font></a><!--###navigation### end --></td>
<td width="64" align bgcolor="#5F7797" class="navigation"" onmouseover="this.style.backgroundColor='#354463';" onmouseout="this.style.backgroundColor='#5F7797'""center><!--###navigation### begin --><a href="fileadmin/template/main/index.htm"><font color="#e9f2fc">news</font></a><!--###navigation### end --></td>
<td width="76" align="center" bgcolor="#5F7797" class="navigation" onmouseover="this.style.backgroundColor='#354463';" onmouseout="this.style.backgroundColor='#5F7797'"><!--###navigation### begin --><a href="fileadmin/template/main/#.htm"><font color="#e9f2fc">adressen</font></a><!--###navigation### end --></td>
<td width="108" align="center" bgcolor="#5F7797" class="navigation" onmouseover="this.style.backgroundColor='#354463';" onmouseout="this.style.backgroundColor='#5F7797'"><!--###navigation### begin --><a href="fileadmin/template/main/#.htm"><font color="#e9f2fc">jugendr&auml;ume</font></a><!--###navigation### end --></td>
<td width="84" align="center" bgcolor="#5F7797" class="navigation" onmouseover="this.style.backgroundColor='#354463';" onmouseout="this.style.backgroundColor='#5F7797'"><!--###navigation### begin --><a href="fileadmin/template/main/#.htm"><font color="#e9f2fc">g&auml;stebuch</font></a><!--###navigation### end --></td>
<td width="51" align="center" bgcolor="#5F7797" class="navigation" onmouseover="this.style.backgroundColor='#354463';" onmouseout="this.style.backgroundColor='#5F7797'"><!--###navigation### begin --><a href="fileadmin/template/main/#.htm"><font color="#e9f2fc">forum</font></a><!--###navigation### end --></td>
<td width="59" align="center" bgcolor="#5F7797" class="navigation" onmouseover="this.style.backgroundColor='#354463';" onmouseout="this.style.backgroundColor='#5F7797'"><!--###navigation### begin --><a href="fileadmin/template/main/#.htm"><font color="#e9f2fc">contact</font></a><!--###navigation### end --></td>
<td width="53" align="center" bgcolor="#5F7797" class="navigation" onmouseover="this.style.backgroundColor='#354463';" onmouseout="this.style.backgroundColor='#5F7797'"><!--###navigation### begin --><a href="fileadmin/template/main/#.htm"><font color="#e9f2fc">links</font></a><!--###navigation### end --></td>
</tr>
</table></td>
</tr>
</table>
<!-- End Menu -->
</td>
</tr>
<tr>
<td colspan="2">
<!-- Main Field -->
<table border="0" cellpadding="1" cellspacing="0" bgcolor="#000000" width="100%">
<tr>
<td> <table border="0" cellpadding="0" cellspacing="10" width="75%" bgcolor="#dcdcdc">
<tr>
<td width="179" valign="top" align="center"> <table border="0" cellpadding="0" cellspacing="0">
<tr>
<td>
<!-- Left -->
<table cellspacing="0" cellpadding="1" border="0" bgcolor="#2d3851">
<tr>
<td> <table cellspacing="0" cellpadding="1" border="0" bgcolor="#BFC4CB">
<tr>
<td><table cellspacing="2" cellpadding="" border="0" bgcolor="#354463" width="175">
<tr>
<td width="167" bgcolor="#354463" class="news"><!--###news### begin --><b>::###NEWS###</b><!--###news### end --></td>
</tr>
<tr>
<td class="news" bgcolor="#5F7797"><!--###news### begin --><b>###MSG1_HEADER####</b><br>
blah blah blah blah blah blah blah
blah blah<!--###news### end --></td>
</tr>
</table>

</td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
<tr>
<td height="10"></td>
</tr>
<tr>
<td align="center">&nbsp; </td>
</tr>
</table>
<!-- End Left -->
</td>
<td width="480" valign="top">
<!-- Right -->
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr>
<td> <table border="0" width="480">
<tr>
<td> <table border="0" cellpadding="1" cellspacing="0" bgcolor="#000000" width="100%">
<tr>
<td> <table border="0" bgcolor="#d0ccd0" width="100%">
<tr>
<td width="100%" height="12" class="CONTENT_HEADER">Überschrift</b>Überschrift</td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
<tr>
<td width="100%" align="right">&nbsp; </td>
</tr>
<tr>
<td class="CONTENT"><!--###CONTENT### begin -->Content<!--###CONTENT### end --></td>
</tr>
</table>
<!-- End Right -->
</td>
</tr>
</table></td>
</tr>
</table>
<!-- End Mainfield -->
</td>
</tr>
<tr>
<td colspan="2" width="100%"> <table border="0" cellpadding="1" cellspacing="0" bgcolor="#000000" width="100%">
<tr>
<td> <table border="0" width="100%" cellpadding="0" cellspacing="0">
<tr>
<td bgcolor="#354463" align="right" width="100%" class="footer"><!--###footer### begin -->©
copyright 2005 gun$hot-hova's webprodukkktion<!--###footer### end --></td>
</tr>
</table></td>
</tr>
</table>
</table>

<!-- End Main Table -->

</center>

<br>

</td>
<a href="index.php?id=8" onfocus="blurLink(this);">&nbsp;<font color=yellow> Home </font>&nbsp;</a><a href="index.php?id=10" onfocus="blurLink(this);">&nbsp;<font color=yellow> News </font>&nbsp;</a><a href="index.php?id=7" onfocus="blurLink(this);">&nbsp;<font color=yellow> Adressen </font>&nbsp;</a><a href="index.php?id=6" onfocus="blurLink(this);">&nbsp;<font color=yellow> Jugendräume </font>&nbsp;</a><a href="index.php?id=5" onfocus="blurLink(this);">&nbsp;<font color=yellow> Gästebuch </font>&nbsp;</a><a href="index.php?id=4" onfocus="blurLink(this);">&nbsp;<font color=yellow> Forum </font>&nbsp;</a><a href="index.php?id=9" onfocus="blurLink(this);">&nbsp;<font color=yellow> Links </font>&nbsp;</a><a href="index.php?id=3" onfocus="blurLink(this);">&nbsp;<font color=yellow> Kontakt </font>&nbsp;</a><BR><BR>
</body>
</html>

BITTE HELFT MIR!!!!