Attr problem (was: Re: [Pmwiki-users] Upload problem)

Robin Sheat robin
Wed Mar 10 16:59:38 CST 2004

On Sat, Mar 06, 2004 at 01:00:22PM +1300, Robin Sheat wrote:
> I'm now having the same problem with setting attributes...can you give
> me the template/config.php changes for this? Or, in order to make myself
OK, I looked into this for myself, and found that it is actualy 
hardcoded into pmwiki.php (*gasp*:)
function PrintAttrForm($pagename) {
  global $PageAttributes, $ScriptUrl;
  echo "<form action='$ScriptUrl' method='post'>
    <input type='hidden' name='action' value='postattr' />
    <input type='hidden' name='pagename' value='$pagename' />
  foreach($PageAttributes as $attr=>$p) {
    $value = (substr($attr,0,6)=='passwd') ? '' : $page[$k];
    $prompt = FmtPageName($p,$pagename);
    echo "<tr><td>$prompt</td>
      <td><input type='text' name='$attr' value='$value' /></td></tr>";
  echo "</table><input type='submit' /></form>";

The third line down needs to be   
echo "<form action='$PgeUrl' method='post'>
I think. Given it has code in it, it can't really be pulled into a 
variable like the others. For now I'll just change PmWiki when I 
upgrade, but is there any way of abstracting this? How do other people 
deal with it?

Robin <robin at>                 JabberID: <eythian at>

Hostes alienigeni me abduxerunt. Qui annus est?

PGP Key 0x776DB663 Fingerprint=DD10 5C62 1E29 A385 9866 0853 CD38 E07A 776D B663
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url :

More information about the pmwiki-users mailing list