Forums / General / Print subtree?
Maarten Holland
Friday 24 June 2011 9:31:07 am
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,
Maarten
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