eZ Community » Forums » General » Print subtree?

Print subtree?

Print subtree?

Friday 24 June 2011 6:31:07 pm - 2 replies

Hello all,

Can anyone tell me if it's possible to create a button that prints a folder including all pages below it?

Thank you in advance,


Friday 24 June 2011 10:01:08 pm


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


Saturday 25 June 2011 1:35:01 pm

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/<sit...out/set/print/content/view/sitemap/2 to see what I mean.

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

Modified on Saturday 25 June 2011 1:35:32 pm by Gaetano Giunta


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

36 542 Users on board!

Forums menu

Proudly Developed with from