Username Password
Bookmark and Share

File Manager style template for Folder

Many people miss the old File Manger from WebGUI 5.  In WebGUI 6, it was replaced by the Folder asset, but that asset doesn't provide the nice table-based layout with sortable columns.

This template provides that piece of the File Manager, using a YUI DataTable with progressive enhancement.  It is a work in progress, and I'll judge how much more effort to put into it based on the amount of feedback and the number of comments.

It was developed on WebGUI 7.7 and tested with Firefox on Ubuntu.

System Requirements

WebGUI 7.7 or higher.  It may work with earlier versions.

Release Notes for Version 1 (2/12/2010)
  1. Sorting by size does not work correctly yet, since it's using a text sort rather than a numeric sort and interpreting the KB and MB suffixes correctly.
  2. The Description field is filled in by the synopsis of the file.  When using the Add Files link, there is no place to add a synopsis!  This is a limitatin of the File Pile, rather than the template.  Synopses need to be added individually to each file after they are uploaded.   To fix that, please consider adding karma to this RFE: Add a summary meta data input field to file pile asset.  (#412)
  3. There is some rendering issue that I haven't debugged yet, the table should be prettier.
3christian_g: "Add a surrounding div of class "yui-skin-sam" to get a correct table on Firefox and IE:

<div class="yui-skin-sam">
<div id="file_manager_wrapper" class="yui-skin-sam yui-dt">

The sorting problem can be surrounded by formatting the size to kB 003, MB 345,...

WebGUI.FileManager.formatSize = function ( elCell, oRecord ) {
var array = (oRecord.getData('size')).split(" ");
while (array[0].length < 3) {
array[0] = '0'+array[0];
elCell.innerHTML = array[1] + " " + array[0];
Downloadfile_manager_template.wgpkg file_manager_template.wgpkg
LinksNo Support Offered
Statistics Downloads: 1006
Views: 5453
Rating: 3
Updated: 2/12/2010
Keywords file manager folder Templates
NavigationBack to the Bazaar
© 2023 Plain Black Corporation | All Rights Reserved