Loading...
 
Features / Usability

Features / Usability


Here's how...

posts: 3665 United States

OK, this was actually pretty easy to hack together.

  1. Make a copy of tiki-view_tracker.php and rename it to tiki-print_tracker.php.
  2. At the very end of the file, replace these 2 lines:
    $smarty->assign('mid', 'tiki-view_tracker.tpl');
    $smarty->display("tiki.tpl");

    with this line:
    $smarty->display('tiki-print_tracker.tpl');
  3. Make a copy fo tiki-view_tracker.tpl and rename it to tiki-print_tracker.tpl.
    • Add {include file="header.tpl"} at the start of the file.
    • Add {include file="footer.tpl"} at the end of the file.
    • Delete anything that you don't want to appear on "printer formatted" page.


I also created a "printer formatted" version of the tiki-view_tracker_item page. You can see my implementation here. I'm going to do the same thing for the HTML pages, too.

Next: Optimizing the new print.php files — I have feeling I'm making a lot of expensive queries to the DB for things that I'm not using on the "printer formatted" pages. Any optimization experts out there?

-Rick

There are no comments at this time.