Hiding stuff on print Posted by billkennedy 21 Nov 2006 09:40 UTC I have a Table of Contents top right on some pages made out of a BOX and maketoc {DIV(float=>right)}{BOX(title=>Table of Contents, width=>20%)}{maketoc}{BOX}{DIV} Is there a plugin that would stop the box being shown on a tiki-print page? Many thanks -- Bill
Posted by billkennedy 21 Nov 2006 16:04 UTC Fixed my own problem writing my first plugin wikiplugin_noprint.php Copy to clipboardfunction wikiplugin_noprint_help() { $help = tra("Hides enclosed block when printing").":\n"; $help.= "{NOPRINT()}{NOPRINT{}"; return $help; } function wikiplugin_noprint($data) { $ret = $data; if( strstr( $_REQUEST["SCRIPT_NAME"], "tiki-print.php" ) ) { $ret = ""; } return $ret; }