[pmwiki-users] sectionedit ate my form!

marc gmane at auxbuss.com
Mon Nov 20 13:07:17 CST 2006


I believe that I've found a bug in sectionedit

  * 2.0.2 - 2005-10-09 - Schlaefer
  ** Change: changed & to & in URLs

The following markup and template should produce a list of radio buttons 
- one for each group - and a button; all within a form, naturally.

Page markup:

  (:pagelist fmt=#grpradio:)

  some more text

Local template

  !!!fmt=#grpradio

list of all the group names

  [@
  [[#grpradio]]
  (:if equal {<$Group} :)
  (:input form "{$PageUrl}":)
  (:if ! equal {<$Group} {=$Group} :)
  * (:input radio n {=$Group}:) {=$Group}
  (:if equal {>$Group} :)
  (:input submit value="Try It":)
  (:input end:)
  (:if:)
  [[#grpradioend]]
  @]

However, with sectionedit.php active, the <form> is absent from the 
HTML.

With sectionedit.php:

  <div class='vspace'></div><div class='fpltemplate'></div>
  <p class='vspace'>some more text
  </p>
  </div>

Without sectionedit.php:

  <div class='vspace'></div><div class='fpltemplate'><form 
action='http://niff/~admin/pmwiki/index.php?n=Site.LocalTemplates' 
method='post'>
  <ul><li><input type='radio' name='n' value='Main' /> Main
  </li><li><input type='radio' name='n' value='PmWiki' /> <span 
class='wikiword'>PmWiki</span>
  </li><li><input type='radio' name='n' value='Site' /> Site
  </li></ul><p><input type='submit' value='Try It' 
class='inputbutton' />
  </p></form>
  </div>
  <p class='vspace'>some more text
  </p>
  </div>

To further test this, I installed a new version of PmWiki, with only the 
necessary changes to run the above test and the problem remained.

One more thing: the <form> displays correctly when previewing the edit

-- 
Best,
Marc





More information about the pmwiki-users mailing list