Glossary Item Box

Site templates: Site templatesContent templatesDefault page templateMain image page

See Also CmsDeveloperGuide Send comments on this topic.

Print version template

If it is necessary you can set up a template page of a print version of the content pages.

 

For example you can put up your logo that will appear on any printing page.

At the top of the page it should obligatory stay a declaration <%@ Page language="c#" Inherits="CMSLib.Pages.PrintPage" %>
The body tag should have an attribute onload="window.print()". The page should also contain a tag <asp:placeholder id="plcContent" runat="server" />, in which the content is put.


This page lies in a site root and is called Print.aspx. It can look as follows:

<%@ Page language="c#" Inherits="CMSLib.Pages.PrintPage" %>

<html>
<body onload="window.print()" marginheight=0 marginwidth=0 leftmargin=0 rightmargin=0 topmargin=0 bgcolor=#ffffff>
<form id="Form1" method="post" runat="server">
<asp:placeholder id="plcContent" runat="server" />
</form>
</body>
</html>

Site templates: Site templatesContent templatesDefault page templateMain image page

 

 


© 2005-2007 Astron Digital Ltd. All Rights Reserved.