Loading...
 
Skip to main content

Features / Usability


Hiding stuff on print

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

Fixed my own problem writing my first plugin wikiplugin_noprint.php

Copy to clipboard
function 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; }