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).
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!