%META:TOPICINFO{author="TWikiContributor" date="1149347294" format="1.1" reprev="1.1" version="1.1"}%
%META:TOPICPARENT{name="TopicFunction"}%
---+!! Function: %TOPIC%
%FORMFIELD{"TopicDescription"}%
Only BlogAuthors will get to see them. See the access rights below.

---++ Parameters
   * MODE: either manage or gallery, defaults to gallery

---++ Implementation
<verbatim>
%STARTINCLUDE%
---++ Upload
<form name="main" enctype="multipart/form-data" action="%SCRIPTURLPATH{"upload"}%/%INCLUDINGWEB%/%INCLUDINGTOPIC%" method="post">
<input type="hidden" name="hidefile" value="1" />
<div class="twikiPageForm">
<table width="100%">
 <tr>
  <td align="right">
   Local file:
  </td><td>
   <input type="file" name="filepath" value="" size="30" />
  </td>
 </tr>
 <tr>
  <td align="right">
   Comment:
  </td><td>
   <input type="text" name="filecomment" value="" maxlength="256" size="40" />
  </td>
 </tr>
  <tr>
   <td>&nbsp;</td>
   <td>
    <input type="submit" class="natFormOkButton" value="Submit" />
%IFDEFINEDTHEN{"%MODE%" as="manage" glue="off"}%
    <input type="button" class="natFormCancelButton" value="Gallery" onclick="window.location.href = '%SCRIPTURLPATH{"view"}%/%INCLUDINGWEB%/%INCLUDINGTOPIC%';">
%ELSEDEFINED%
    <input type="button" class="natFormCancelButton" value="Manage" onclick="window.location.href = '%SCRIPTURLPATH{"view"}%/%INCLUDINGWEB%/%INCLUDINGTOPIC%?mode=manage';">
%FIDEFINED%
   </td>
  </tr>
</table>
</div>
</form>
%STOPALIASAREA%
%IFDEFINEDTHEN{"%MODE%" as="manage" glue="off"}%
---++ Manage 
%$nopMETA{"attachments" all="on"}% 
<style type="text/css">
.twikiAttachments table {
  font-size:80%;
}
</style>
%ELSEDEFINED% <!-- -->

---++ Gallery
%$nopIMAGEGALLERY{columns="3"}%

---++ Tips

   * =Set BLOGIMAGES = %<nop>PUBURLPATH%/%<nop>WEB%/BlogImages= in WebPreferences
   * Add to your posting text 
     =&lt;img class="alignright border" src="%<nop>BLOGIMAGES%/SomeImage.gif" />=,
     use classes =alignright=, =alignleft=, =border=
   * If you've installed the TWiki:Plugins/ImagePlugin use
     =%<nop>IMAGE{"SomeImage.gif|frame|left|200px"}%= to create a framed image floating
     left whose geometry does not exceed 200px,
     use =right=, =left=, =center= to position the image. 
     <span style="%CALC{"$IF($EXISTS(%TWIKIWEB%/ImagePlugin),,display:none)"}%">
     See the %TWIKIWEB%.ImagePlugin documentation for more information.
     </span>
   
%FIDEFINED%
%STOPINCLUDE%
</verbatim>

<!-- interrupt glue -->

---++ Test
See BlogImages

%DBCALL{"RenderFunctionCallers"}%

<!--
   * Set ALLOWTOPICCHANGE = %MAINWEB%.BlogAdminGroup
   * Set ALLOWTOPICVIEW = %MAINWEB%.BlogAuthorGroup
   * Set SIDEBAR = Admin
   * Set SIDEBARARG = TopicFunction
-->

%META:FORM{name="TopicForm"}%
%META:FIELD{name="TopicType" attributes="M" title="TopicType" value="TopicFunction"}%
%META:FIELD{name="TopicDescription" attributes="" title="TopicDescription" value="Render management tools for the BlogImages"}%
