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
|