Revision history for FilesManagementHandler


Revision [18250]

Last edited on 2008-01-28 00:10:43 by ChristianBarthelemy [Modified links pointing to docs server]

No Differences

Revision [4562]

Edited on 2005-01-12 22:45:51 by ChristianBarthelemy [Replaced by FilesManagementSolution]
Additions:
I have completely rebuilt this a part of a global FilesManagementSolution.
Deletions:
====Change the Mod015fFilesAction into a handler====

- Change the files.php location from the /actions folder to the /handlers/page folder
- Encapsulate the full code between <div class="page"> and </div> (not mandatory but more readable)
- Change this code:
%%(php)
// form
$result = "<form action=\"".$this->href()."\" method=\"post\" enctype=\"multipart/form-data\">\n";
if (!$this->config["rewrite_mode"]) $result .= "<input type=\"hidden\" name=\"wakka\" value=\"".$this->MiniHref()."\">\n";
echo $result;
%%
into:
%%(php)
// form
// form
$result = "<form action=\"".$this->href()."/files\" method=\"post\" enctype=\"multipart/form-data\">\n";
if (!$this->config["rewrite_mode"]) $result .= "<input type=\"hidden\" name=\"wakka\" value=\"".$this->MiniHref()."/files\">\n";
echo $result;
%%
- Change this code:
%%(php)
<?php
echo $this->FormClose();
%%
into:
%%(php)
<?php
echo "<a href=\"".$this->Href()."\">Back to the page</a>";
echo $this->FormClose();
%%
- You still need the files.xml.php and the other parts of the Mod015fFilesAction!


Revision [3585]

Edited on 2004-12-22 00:22:11 by ChristianBarthelemy [Replaced by FilesManagementSolution]

No Differences

Revision [3584]

Edited on 2004-12-22 00:21:27 by ChristianBarthelemy [Minor update]
Additions:
- You still need the files.xml.php and the other parts of the Mod015fFilesAction!
Deletions:
%%


Revision [3583]

The oldest known version of this page was created on 2004-12-22 00:20:00 by ChristianBarthelemy [Minor update]
Valid XHTML :: Valid CSS: :: Powered by WikkaWiki