[pmwiki-users] markup question

Hans design at softflow.co.uk
Tue Mar 21 10:39:17 CST 2006


Tuesday, March 21, 2006, 4:26:02 PM, Patrick wrote:
> It ought to work.  Can you give more details about the markup
> being used...?

It did not work when putting toggle buttons or links into a sidebar
using showhide.php or togglelink.php.

then I constructed the following for dummy testing, just checking the
html source, and it did not work in the same way. it only works when
on the SideBar page, or when the markup is on the page rather than the
sidebar (which is the case obviously when on the SideBar page).

# Dummy test with markup (:sbtest:)
Markup('sbtest', 'directives',
  '/\\(:sbtest:\\)/e',
  "SBTest(\$pagename)");
  
function SBTest($pagename) {
  global $HTMLHeaderFmt, $HTMLStylesFmt;
  $HTMLHeaderFmt['sbtest'] = "
  <script type='text/javascript'><!--
  //dummy 
  --></script> ";
  $HTMLStylesFmt['sbtest'] = "
       #dummy {background:yellow}
  ";
};


Best, 
~Hans                           





More information about the pmwiki-users mailing list