[pmwiki-users] PageAttrFmt suggestion

adam overton a at plus1plus1plus.org
Fri Jul 24 18:42:10 CDT 2009


hi petko (or whoever gets this msg first)
thanks petko for the advice on using the PageAttr to set the msg of ? 
action=attr pages (http://pmwiki.org/wiki/PITS/01126). i'm going  
through your suggestions one step at a time, but am already coming  
across a problem. the page is breaking up when i try to use  
MarkupToHTML($pagename, $p['text']). for instance:

# this works fine, but won't convert any page markup...
if($action=='attr'){
	$PageAttrFmt = "test";
}

# this works fine, but also won't convert any page markup...
if($action=='attr'){
	$p = ReadPage('Site.AttrForm', READPAGE_CURRENT);
	$PageAttrFmt = $p['text'];
}

# this fails
if($action=='attr'){
	# the page 'Site.AttrForm' doesn't even have any markup in it - just  
the word  "test"
	$p = ReadPage('Site.AttrForm', READPAGE_CURRENT);
	$PageAttrFmt = MarkupToHTML($pagename, $p['text']);
	$PageAttrFmt = $p['text'];
}

any idea what i have to get MarkupToHTML to work correctly in this case?
many thanks,
adam



-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.pmichaud.com/pipermail/pmwiki-users/attachments/20090724/c5c3b214/attachment.html 


More information about the pmwiki-users mailing list