printerfriendly | project | technical | examples | links | # | ||||
project - summary - reasoning - usage Features: - expandvars - updatevars - simplevars - attribvars - printerfriendly textmode version - sitemapstyle - filelist ToDo - sitemap styles - section styles - setting vars - alternatives - section hi:light - topic hi:light - two sitefiles - staging files - debug enable
(C) 2004-04-24 |
printerfriendly = printer friendly version<!--mksite:printerfriendly--> <a href="${printerfriendly:=site.htm}" title="printer friendly version"> <img alt="printer / text mode version" width="8" height="8" border="0" /></a>
This is the recommended sitefile snippet to enable the mode that will
generate a printerfriendly sister page for all pages also
generated by the <!--mksite:printerfriendly:.print--> The actual inner mechanics will create a sister sitefile for the printerfriendly mode with the stem extension - if your sitefile was named "site.htm" (the default) then the printersitefile would be named "site.print.htm" (as per defaults). This printersitefile contains definitions for horizontal navigation bars created out of the information for the access tree as given in the original sitefile. Those horizontal bars reflect the sect/subsect relations in a way most usable form for very small screen sizes or even text mode browsers. textmode-example.print.html
Each line of the navigation block represents another level of the sect/subsect relation. To left of each line a little square (for an empty <img>) is shown. You can hover the mouse over these squares to get a "title=" popup as follows:
Hence in the example "[text mode version]" has the href to the page currently viewed. That pages is categorized in the section "[ features ]" and it has two extension pages "WAI" and "SubSects" that can be jumped to. After the navigation block follows the page text. For the page text to work, we have cleared out the complete <head>er from the original sitefile. There were only a few lines grepped out and taken over:
The meta tags are automatically overwritten with a value as "isFormatOf" pointing to the graphical represenation made from the original sitefile. No provisions have yet been made to take over any "@print" css properties - therefore the page main content will be shown in the default browser style which we expect to be generally best for the device that the browser was created for - that may as well include a text mode browser like lynx, a graphical browser for a small screen like a PDA (personal digital assistant), a small screen text mode browser as for some mobile phones, or a special layout style for "visually impaired" possibly bound to a text-to-speach reader representation the page in a linear textual fashion. |