Note: This article assumes the reader has a basic understanding of page layouts and what they are used for in Titan CMS.
It is possible to view the printer-friendly version of a page by specifying a “PrintPage=yes” query string parameter at the end of the page URL. For example, if the URL to your standard page is www.Titan CMS.com/Support.htm, you can view the printer-friendly version of this page by typing in the following URL: www.Titan CMS.com/Support.htm?PrintPage=yes. The most common way to present this option to your users is to add a page tools section into your page layouts. The page tools section will then be generated automatically for you on any page that is using that particular page layout, and will (by default) include a link to the printer-friendly version of that webpage.
By default, the print version of a page will contain only the center-content area of the standard version. This means any navigation zones, right/left content zones, etc. will be excluded from the printer-friendly version. Sometimes it is advantageous to modify this printer-friendly version to better suit your design/needs.
As discussed earlier, when a user specifies the “PrintPage=yes” query string parameter, the printer-friendly version of a page is generated. This is actually done by applying a different page layout to the page. When told to display the printer-friendly version, instead of applying the page layout specified for that particular page, the application will apply a special built-in page layout called PrintPage.ascx. In order to modify the prtiner-friendly layout, one simply needs to modify the PrintPage.ascx file. This file is a page layout itself – and can contain the same components as a standard page layout.
To modify this file, follow these steps:
1. Log in to your Titan CMS workstation, and navigate to the Titan Administration module.
2. Select the “Download” button from the global toolbar at the top of the screen.
3. In the left pane, navigate to the ContentMgmt >PageLayouts folder. In this PageLayouts folder, you will find the file named PrintPage.ascx.
4. Select the PrintPage.ascx file, and hit the “Download” button from the toolbar at the top of the dialog box. Save the file to your computer
5. Modify the file as needed, and save it.
6. Navigate back to the PageLayouts folder from step #3.
7. Hit the “Upload” button from the toolbar at the top of the dialog box. Select the file you just modified, and hit the “Upload” button again. Your printer-friendly page layout has now been updated.
Important: The file must be named PrintPage.ascx.
CSS Files and the Print Page Layout
The PrintPage.ascx file is used for every print page in your Titan CMS installation. This means that if you have multiple globes, the same PrintPage.ascx file will be used for every globe. However, different globes may use different CSS files and entirely different designs. Thus, when the printer-friendly version of a page is loaded, it will inherit the CSS file that the standard version of the page employs. This ensures that the printer-friendly version will have the same look/feel of the standard version.
In some cases it is advantageous to specify a global print style that all pages will use, regardless of the CSS that the standard page uses. In this case, the global print style will override the CSS file that would have normally been inherited from the standard version of the page. This style can be specified in a completely external file (E.G. print.css), or it can be integrated into another CSS file. If you would like to explicitly specify the CSS used on the print page layout, you can specify an additional “cssoverride=…” query string parameter. The value of the parameter should be the name of a CSS file that resides in the ClientCSS folder of your installation. For example, to display the printer-friendly version of a page with a specific CSS: www.Titan CMS.com/support.htm?PrintPage=yes&cssoverride=print.css.