Eron Lloyd wrote:
Can anyone recommend a good way to implement a print version/no frame document switching mechanism? This seems to be widely done, and was wondering how most Web developers would do this using Zope.
Take a trip to Zope.org. notice the two links 'Printable Version' (or something like that :), and 'view source'. Therin lies an answer. :) Basically, you want dtml to check for a variable, call it 'printme', for example. If this variable is set, you use an alternate html header. Then you can call you page with '?printme=1' added on, and you should get the alternative rendering. you can do this by putting the code in your standard_html_header, and get it on all pages. For example: <dtml-if printme> plain header, and/or printing specific css link (if used) <dtml-else> Your standard html header stuff for your site </dtml-if> Now you can call, say index_html, as http://www.yoursite.com/index_html?printme=1 and get a printable version. As far as formatting goes, that's between you and your html :) HTH, Bill