[PRINT]Drucken[Print]
Posted: Sun 28. Feb 2010, 15:19
Hallo,
möchte meinen Seiteninhalt also nur {CONTENT} anzeigen lassen mit einem extra dafür vorgesehenen Header und einem Footer mit der {CURRENT_URL}.
Habs eigentlich nach der Anleitung versucht.
http://yaml.phpwcms.org/artikel-drucken.phtml
Bekomm aber jedesmal wenn ich Drucken anklicke meine Komplette Seite mit Header, Footer, Left und Content.
Hab aber nur das in meiner Print.tmpl drin stehen:
<body class="oneColFixCtrHdr">
<div id="container">
<div id="header">
<!-- end #header --></div>
<div id="mainContent">
{CONTENT}
<!-- end #mainContent -->
</div>
<div id="footer">
{CURRENT_URL} <!-- end #footer --></div>
<!-- end #container --></div>
</body>
Das steht in meiner print_layout.css
body {
margin: 0; /* it's good practice to zero the margin and padding of the body element to account for differing browser defaults */
padding: 0;
text-align: center; /* this centers the container in IE 5* browsers. The text is then set to the left aligned default in the #container selector */
color: #000000;
}
.oneColFixCtrHdr #container {
width: 180mm; /* using 20px less than a full 800px width allows for browser chrome and avoids a horizontal scroll bar */
background: #FFFFFF;
margin: 0 auto;
text-align: left;
padding-left: 25mm;
padding-right: 5mm;
}
.oneColFixCtrHdr #header {
height: 32mm;
background: url(screen/images/printheader.png) no-repeat left top;
border-bottom: 2px solid silver;
}
.oneColFixCtrHdr #mainContent {
background: #FFFFFF;
margin-top: 5mm;
}
.oneColFixCtrHdr #footer {
background:#DDDDDD;
margin: 0;
padding: 5px;
color: #444;
}
Was mach ich falsch. Danke http://www.haplan-metall-maschinenbau.de
Gruß Dominik
möchte meinen Seiteninhalt also nur {CONTENT} anzeigen lassen mit einem extra dafür vorgesehenen Header und einem Footer mit der {CURRENT_URL}.
Habs eigentlich nach der Anleitung versucht.
http://yaml.phpwcms.org/artikel-drucken.phtml
Bekomm aber jedesmal wenn ich Drucken anklicke meine Komplette Seite mit Header, Footer, Left und Content.
Hab aber nur das in meiner Print.tmpl drin stehen:
<body class="oneColFixCtrHdr">
<div id="container">
<div id="header">
<!-- end #header --></div>
<div id="mainContent">
{CONTENT}
<!-- end #mainContent -->
</div>
<div id="footer">
{CURRENT_URL} <!-- end #footer --></div>
<!-- end #container --></div>
</body>
Das steht in meiner print_layout.css
body {
margin: 0; /* it's good practice to zero the margin and padding of the body element to account for differing browser defaults */
padding: 0;
text-align: center; /* this centers the container in IE 5* browsers. The text is then set to the left aligned default in the #container selector */
color: #000000;
}
.oneColFixCtrHdr #container {
width: 180mm; /* using 20px less than a full 800px width allows for browser chrome and avoids a horizontal scroll bar */
background: #FFFFFF;
margin: 0 auto;
text-align: left;
padding-left: 25mm;
padding-right: 5mm;
}
.oneColFixCtrHdr #header {
height: 32mm;
background: url(screen/images/printheader.png) no-repeat left top;
border-bottom: 2px solid silver;
}
.oneColFixCtrHdr #mainContent {
background: #FFFFFF;
margin-top: 5mm;
}
.oneColFixCtrHdr #footer {
background:#DDDDDD;
margin: 0;
padding: 5px;
color: #444;
}
Was mach ich falsch. Danke http://www.haplan-metall-maschinenbau.de
Gruß Dominik