<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">
hi petko (or whoever gets this msg first)<div>thanks petko for the advice on using the PageAttr to set the msg of ?action=attr pages (<a href="http://pmwiki.org/wiki/PITS/01126">http://pmwiki.org/wiki/PITS/01126</a>). 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&nbsp;MarkupToHTML($pagename, $p['text']). for instance:</div><div><br></div><div><div># this works fine, but won't convert any page markup...</div><div>if($action=='attr'){</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>$PageAttrFmt = "test";</div><div>}</div><div><br></div><div><div># this works fine, but also won't convert any page markup...</div></div><div><div>if($action=='attr'){</div><div><span class="Apple-tab-span" style="white-space: pre; ">        </span>$p = ReadPage('Site.AttrForm', READPAGE_CURRENT);</div><div><span class="Apple-tab-span" style="white-space: pre; ">        </span>$PageAttrFmt = $p['text'];</div><div>}</div><div><br></div></div><div># this fails</div><div>if($action=='attr'){</div><div><span class="Apple-tab-span" style="white-space:pre">        </span># the page 'Site.AttrForm' doesn't even have any markup in it - just the word &nbsp;"test"</div><div><span class="Apple-tab-span" style="white-space: pre; ">        </span>$p = ReadPage('Site.AttrForm', READPAGE_CURRENT);</div><div><span class="Apple-tab-span" style="white-space: pre; ">        </span>$PageAttrFmt = MarkupToHTML($pagename, $p['text']);</div><div><span class="Apple-tab-span" style="white-space: pre; ">        </span>$PageAttrFmt = $p['text'];</div><div>}</div><div><br></div><div>any idea what i have to get MarkupToHTML to work correctly in this case?</div><div>many thanks,</div><div>adam</div><div><br></div><div><br></div><div> <span class="Apple-style-span" style="font-size: 11px; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Verdana; font-size: 11px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Verdana; font-size: 11px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Verdana; font-size: 11px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><div><span class="Apple-style-span" style="font-size: medium;"><br></span></div></span></span></span></span></div></div></body></html>