[TYPO3-english] content error
Marlon Ganz
Marlon at ultra.ch
Fri Aug 21 14:51:17 CEST 2009
Anyone?
________________________________
Von: Marlon Ganz
Gesendet: Freitag, 21. August 2009 11:50
An: 'typo3-english at lists.netfielders.de'
Betreff: content error
Hi
I have a template implemented into typo3 4.2.8, the menu I can get
generated by typo3 but not the content. Is there anything I've missed?
Thanks.
This is the html code:
<!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>
<title>Ultra - Home</title>
<link href="res/ultra_stylesheet2.css" rel="stylesheet"
type="text/css">
<meta http-equiv="Content-type"
content="text/html;charset=UTF-8">
</head>
<body>
<!--###HEADER START###-->
<div id="header">
<div id="logo">
<div class="ultralogo">
<img src="images/logo.jpg" alt="Ultra Logo">
</div>
</div>
</div>
<!--###HEADER END###-->
<!--###CONTAINER START###-->
<div id="container">
<!--###BANNER START###-->
<div id="banner">
<object id="FlashID"
classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="980"
height="200">
<param name="movie"
value="fileadmin/template/ultra/banners_main/ultra_home_final.swf">
<param name="quality" value="high">
<param name="wmode" value="opaque">
<param name="swfversion" value="9.0.45.0">
<!-- This param tag prompts users with Flash Player
6.0 r65 and higher to download the latest version of Flash Player.
Delete it if you don't want users to see the prompt. -->
<param name="expressinstall"
value="fileadmin/template/ultra/Scripts/expressInstall.swf">
<!-- Next object tag is for non-IE browsers. So hide
it from IE using IECC. -->
<!--[if !IE]>-->
<object type="application/x-shockwave-flash"
data="fileadmin/template/ultra/banners_main/ultra_home_final.swf"
width="980" height="200">
<!--<![endif]-->
<param name="quality" value="high">
<param name="wmode" value="opaque">
<param name="swfversion" value="9.0.45.0">
<param name="expressinstall"
value="fileadmin/template/ultra/Scripts/expressInstall.swf">
<!-- The browser displays the following alternative
content for users with Flash Player 6.0 and older. -->
<div>
<h4>Content on this page requires a newer version of
Adobe Flash Player.</h4>
<p><a
href="http://www.adobe.com/go/getflashplayer"><img
src="http://www.adobe.com/images/shared/download_buttons/get_flash_playe
r.gif" alt="Get Adobe Flash player" width="112" height="33"></a></p>
</div>
<!--[if !IE]>-->
</object>
<!--<![endif]-->
</object>
</div>
<!--###BANNER END###-->
<!--###NAVIGATION START###-->
<div id="menu_container">
<div class="menu_shadow_top"></div>
<div class="nav_container">
<div id="menu_1">
<div class="menu-level1-no"><a href="#">Menu
item 1</a></div>
<div class="menu-level1-no"><a href="#">Menu
item 2</a></div>
<div class="menu-level1-act"><a
href="#">Menu item 3 (act)</a></div>
<div class="menu-level2-act"><a
href="#">Level 2 item</a></div>
<div class="menu-level3-no"><a
href="#">Level 3 item</a></div>
<div class="menu-level3-act"><a
href="#">Level 3 item</a></div>
<div class="menu-level2-no"><a
href="#">Level 2 item</a></div>
<div class="menu-level2-no"><a
href="#">Level 2 item (act)</a></div>
<div class="menu-level1-no"><a href="#">Menu
item 2</a></div>
</div>
</div>
<div class="menu_shadow_bot"></div>
</div>
<!--###NAVIGATION END###-->
<!--###CONTENT START###-->
<div id="content">
content goes here
</div>
<!--###CONTENT END###-->
</div>
<!--###CONTAINER END###-->
<!--###FOOTER START###-->
<div id="footer">
<div class="footer_shadow">
<img src="images/footer_shadow.png" alt=""
border="0" />
</div>
<div class="footer_content">
<p><img src="images/claim.gif" alt="" border="0"
/><span><strong>Ultra</strong></span><span>Ernastrasse
20</span><span>CH-8004 Zürich</span><span>fon +41 44 297 98
98</span></p>
</div>
</div>
<!--###FOOTER END###-->
</body>
</html>
And this is the setup configuration:
# Menu 1 cObject
temp.menu_1= HMENU
# First level menu-object, textual
temp.menu_1.1 = TMENU
temp.menu_1.1 {
# Normal state properties
NO.allWrap = <div class="menu-level1-no"> | </div>
# Enable active state and set properties:
ACT = 1
ACT.allWrap = <div class="menu-level1-act"> | </div>
}
# Second level menu-object, textual
temp.menu_1.2 = TMENU
temp.menu_1.2 {
# Normal state properties
NO.allWrap = <div class="menu-level2-no"> | </div>
# Enable active state and set properties:
ACT = 1
ACT.allWrap = <div class="menu-level2-act"> | </div>
}
# Third level menu-object, textual
temp.menu_1.3 = TMENU
temp.menu_1.3 {
# Normal state properties
NO.allWrap = <div class="menu-level3-no"> | </div>
# Enable active state and set properties:
ACT = 1
ACT.allWrap = <div class="menu-level3-act"> | </div>
}
# Configuring the Auto-Parser for main template:
plugin.tx_automaketemplate_pi1 {
# Read the template file:
content = FILE
content.file = fileadmin/template/ultra/ultra_template2.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
DIV.id.menu_1 = 1
DIV.id.content = 1
}
# Prefix all relative paths with this value:
relPathPrefix = fileadmin/template/ultra/
}
# Main TEMPLATE cObject for the 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 ###menu_1### subpart with dynamic menu:
subparts.menu_1 < temp.menu_1
# Substitute the ###content### subpart with some example content:
subparts.content < styles.content.get
}
# Main TEMPLATE cObject for the 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
}
# Default PAGE object:
page = PAGE
page.typeNum = 0
# Copying the content from TEMPLATE for <body>-section:
page.10 < temp.mainTemplate
# Copying the content from TEMPLATE for <head>-section:
page.headerData.10 < temp.headTemplate
# Favicon
page.shortcutIcon = fileadmin/template/ultra/images/favicon.ico
More information about the TYPO3-english
mailing list