JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
added admin_files, s/this_host/$host/, etc
[wfpl-cms.git] / admin_files.html
index 180d515..172ad09 100644 (file)
 
                <form action="admin_files" method="post" enctype="multipart/form-data"><!--~id {~--><div style="display: none"><input type="hidden" name="edit_id" value="~id attr~"></div><!--~}~--><input type="hidden" name="MAX_FILE_SIZE" value="~upload_max_filesize~">
 
-                       <div class="caption">Filename</div>
+                       <div class="caption">File</div>
                        <div class="field"><input type="file" name="filename"><input type="hidden" name="old_filename" value="~filename attr~"></div>
 
-                       <div class="caption">Description</div>
+                       <div class="caption">Description (optional)</div>
+                       <div class="field_notes">The files admin page sorts by this, so you can find your files.</div>
                        <div class="field"><input type="text" name="description" value="~description attr~"></div>
 
                        <div class="caption">&nbsp;</div>
                <h2>Files Listing</h2>
 
                <!--~listings once_if {~-->
+                       <p>The value in the "Path" column below can be pasted into the "URL" field of the link dialog on the page editor. Be sure to set the "protocol" pulldown there to "other". To link to a file from any other website (or e-mail, etc) create the full address by prefixing it with "http://~$host~"</p>
+
                        <p><a href="admin_files?new=1">[Add a new file]</a></p>
 
                        <table cellspacing="0" cellpadding="4" border="1" summary="">
-                               <tr><th>Filename</th><th>Description</th><th>&nbsp;</th></tr><!--~listings {~-->
+                               <tr><th>Path</th><th>Description</th><th>&nbsp;</th></tr><!--~listings {~-->
                                <tr>
-                                       <td class="listing"><a href="admin_files?edit_id=~id~">~filename html~<!--~filename empty {~--><em>(blank)</em><!--~}~--></a></td>
+                                       <td class="listing"><a href="admin_files?edit_id=~id~">/~filename html~<!--~filename empty {~--><em>(blank)</em><!--~}~--></a></td>
                                        <td class="listing"><a href="admin_files?edit_id=~id~">~description html~<!--~description empty {~--><em>(blank)</em><!--~}~--></a></td>
                                        <td><a href="admin_files?admin_files_delete_id=~id~" onclick="return confirm('Permanently delete?')">[delete this file]</a></td>
                                </tr><!--~}~-->