[pmwiki-users] Disabling HTML on a page or a group?

Hans design5 at softflow.co.uk
Fri Feb 1 03:27:40 CST 2008


Friday, February 1, 2008, 2:19:37 AM, Steven Benmosh wrote:

> Is there something that would allow a global enablehtml functionality, then
> disable it in particular pages or groups?

to include a script for all wiki pages but not for some, you can do a
conditional include in config.php.
Say you don't want to allow EnableHTML in group 'User' and page
'Main.Sandbox'

$page = PageVar($pagename,'$FullName');
$group = PageVar($pagename, '$Group');
if (!$group=='User' && !$page=='Main.Sandbox') {
   include_once("$FarmD/cookbook/enablehtml.php");
   EnableHTML('b|i|u|sup|sub|a|iframe|small');
   etc....
}


  ~Hans




More information about the pmwiki-users mailing list