[pmwiki-users] changing style by category

noskule noskule at gmx.net
Mon Mar 27 15:00:59 CST 2006

hi list
I try to change the style if a specific category exists:

*function* StylePresentation($pagename, &$page, &$new) {
	if (strpos(@$new['text'], '[[!Presentation]]') == *true*) {
		$PageTextStartFmt = "*\n*<div id='presentation'>*\n*";

but dosnt work :-( How do I correctly say: parse the wikitext? 
thanxs for any hints
grz nos

More information about the pmwiki-users mailing list