Log in | Register | Lost password

Bottom
RFC - Printer Friendly pages
  • Posted: 03.10.2005, 23:49
     
    Converted
    rank:
    12
    registered:
     March 2009
    Status:
    offline
    last visit:
    Posts:
    0
    Jorn -

    New to PostNuke 0.76 is a new, special "Printer Friendly" theme intended to make any content page of a PostNuke site printer friendly. It has some really nice features:

    * Automatically includes hooked content, such as comments (which was the big one for me)

    * Converts links into footnoted URLs, so that even when it's printed on paper the reader can see where he can browse to

    * Automatically excludes blocks, but since it's a Xanthia theme you could (theoretically) designate particular blocks to show up in a Printer Friendly page for particular modules.

    It seems to me that it would be a good idea to swap this method for your existing one. I hacked pnuserapi.php to do it for myself at line 1024:

    Code

    $printThisURL = pnModUrl('pagesetter','user','viewpub',

    array('tid' => $tid,

    'pid' => $pid,

    'theme' => 'Printer'));

    $printThisURL = htmlspecialchars($printThisURL);

    $printThisHTML = "<a href=\"$printThisURL\" target=\"_blank\">" . _PGPRINTTHIS . "</a>";


    What do you think?
  • Posted: 07.04.2006, 11:54
     
    Converted
    rank:
    12
    registered:
     March 2009
    Status:
    offline
    last visit:
    Posts:
    0
    I was wondering if there is any updates on the relation pn-printer-theme versus pagesetter printThis functionality?

    bronto

    Jorn -

    New to PostNuke 0.76 is a new, special "Printer Friendly" theme intended to make any content page of a PostNuke site printer friendly. It has some really nice features:

    * Automatically includes hooked content, such as comments (which was the big one for me)

    * Converts links into footnoted URLs, so that even when it's printed on paper the reader can see where he can browse to

    * Automatically excludes blocks, but since it's a Xanthia theme you could (theoretically) designate particular blocks to show up in a Printer Friendly page for particular modules.

    It seems to me that it would be a good idea to swap this method for your existing one. I hacked pnuserapi.php to do it for myself at line 1024:

    Code

    $printThisURL = pnModUrl('pagesetter','user','viewpub',

    array('tid' => $tid,

    'pid' => $pid,

    'theme' => 'Printer'));

    $printThisURL = htmlspecialchars($printThisURL);

    $printThisHTML = "<a href=\"$printThisURL\" target=\"_blank\">" . _PGPRINTTHIS . "</a>";


    What do you think?

Template courtesy of Designs By Darren.