Alternative Content Display
he Alternative Content Display plugin allows the visitor to display a text page in printable format. There are no configuration options but there are template dependencies. Edit the alt_display.tpl for the template you are going to use to setup the icon for the printing button.
The Alternative Display Plugin was introduced with version 1.11. Under the default configuration it deploys a form at the end of text pages and hooks into the primary HTML calls in the framework. Once the user clicks one of the alternative buttons of the form, the Plugin inhibits propagation of the HTML calls and takes over the display content.
In the first version 1.00, all the Alternative Content Display Plugin does, is to override the default HTML sections and displays the content in a plain format suitable for printing. The whole idea behind it, is to expose the primary HTML hooks that control the stylesheets and HTML document properties. When the user clicks the print button the Plugin responds to the following calls by emptying the HTML tags arrays:
The same exact code is used with the other hooks with the only difference being the hook name. For regular browsing ie: when no print button is pressed all the plugin does is to dsiplay a form with the button at the end of a text page.
The code can be extended to support different formats. For instance if we wanted to produce a PDF format out of the text page upon hooking the content we could buffered the output and process the page contents using a PDF library then generate a PDF file.
Using the advanced Plugin system of the I-Metrics CMS create your own plugins or integrate existing ones to gear your website around your niche.
This section contains technical information of the Plugins Manager, integrated Plugins and each of these add-ons operates on the web-front and back end of the framework