[pmwiki-users] Customizing the "Attach" page

Patrick R. Michaud pmichaud at pobox.com
Wed May 30 08:42:45 CDT 2007


On Wed, May 30, 2007 at 03:10:57PM +0300, Mildiner, Melvyn wrote:
> 
> I'd like to remove the "Name attachment as:" box from my Upload/Attach
> page. Is there an easy way to do this?

Depends on the definition of "easy".  In local/config.php, try:

$PageUploadFmt = array("
  <div id='wikiupload'>
  <h2 class='wikiaction'>$[Attachments for] {\$FullName}</h2>
  <h3>\$UploadResult</h3>
  <form enctype='multipart/form-data' action='{\$PageUrl}' method='post'>
  <input type='hidden' name='n' value='{\$FullName}' />
  <input type='hidden' name='action' value='postupload' />
  <table border='0'>
    <tr><td align='right'>$[File to upload:]</td><td><input
      name='uploadfile' type='file' /></td></tr>
    <tr><td><input type='submit' value=' $[Upload] ' /><br />
        </td></tr></table></form></div>",
  'wiki:$[{$SiteGroup}/UploadQuickReference]');

Eventually I expect this to be specified as a wiki page
(i.e., Site.UploadForm), but this is the best I can do for now.

Pm



More information about the pmwiki-users mailing list