Print Friendly pages

Author Message

Paul Forsyth

Sunday 23 February 2003 9:52:50 am

I have a site with various menus and i would like to create print friendly views for my objects. The simple way to do this would seem to be to switch to a different site design, but im running into problems with this.

Ive had a look at the code within admin for previewing objects for there you can actually switch designs for testing. The preview page is rendered with this tpl file:

design/standard/templates/content/view/versionview.tpl

I have set up another sitedesign - basically the same site but with a much reduced main template inside. However, im finding it pretty hard getting the transplanted code working. When i try to set the sitedesign i want with the code:

<form method="post" action={concat("content/versionview/",$node.contentobject_id,"/",$node.contentobject_version,"/")|ezurl}>

<div class="buttonblock">
<input class="button" type="submit" name="ChangeSettingsButton" value="Change" />
</div>

<input type="hidden" name="SelectedSitedesign" value="booo" />
<input type="hidden" name="ContentObjectLanguageCode" value="eng-GB" />
<input type="hidden" name="ContentObjectID" value="{$node.node_id}" />

</form>

Pressing the change button does seem to change the design but my object isn't rendered. Not too sure whats going on here, if ive missed some paramter that needs to be passed to the versionview kernel file or what.

Has anyone else tried this with ez3? Solutions are welcome :)

Paul

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.