Print subtree?

Print subtree?

Friday 24 June 2011 9:31:07 am - 2 replies

Author Message

Karol Radziuk

Friday 24 June 2011 1:01:08 pm

Hi

I guess, you are interested in using AJAX. If so, there is a good  life example: contentstructuremenu in admin panel and its templates (design/admin2/contentstructuremenu/*.tpl).

You can also check here: http://share.ez.no/learn/ez-publish/ezjscore-ez-publish-javascript-and-ajax-framework/(page)/8

Cheers.

{$me|attribute(show,1)}

Gaetano Giunta

Saturday 25 June 2011 4:35:01 am

Could be, but I see no need for ajax for such a simple request...

For print layouts, using layout/set/original-url works fine: it pushes a different pagelayout on the page, so that you can avoid printing useles header/footer/side-columns and make better space of the paper page (of course you can do this via a css with media-type=print if you're good enough)

For recursive templates, the existing siteamp.tpl is a good starting point.

Just try this url: http://yoursite/index.php/<siteaccess>/layout/set/print/content/view/sitemap/2 to see what I mean.

You'll just need to add the button that invokes the print dialog

Principal Consultant International Business
Member of the Community Project Board

You must be logged in to post messages in this topic!

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