Hy UncleCheese
I realy like you module and tested it for a while. I'll found some additions for it:
Default-value for view
I’d like to have functions to set the default view-Value of a FileDataObjectManager-Object.
The Problem is, you can’t set the public var $view, otherwise changing of the views won’t work.
Quick ‘n dirty:
public function SetGridView(){
if(!isset($_REQUEST['ctf'][$this->Name()]['view'])) $this->view='grid';
}
Translations
Dataobjectmanager.ss, File Dataobjectmanager.ss, ImageDataobjectmanager.ss
Line 86: <% _t('DRAGDROP', 'Allow drag & drop reordering') %>
Line 33: <% _t('SEARCH', 'Search') %>
FileDataObjectManager.php
Line 104:
return new DropdownField('ImportFolder','',$this->getFolderHierarchy(0),null, null, "-- "._t('DataObjectManager.SELECTFOLDER', 'Select a folder')." --");
Line 171,172
new HeaderField($title = _t('DataObjectManager.ADD', 'Add').' '.$this->PluralTitle(), $headingLevel = 2),
new HeaderField($title = _t('DataObjectManager.UPLOADFROMPC', 'Upload from my computer'), $headingLevel = 3),
Line 218:
$header = new HeaderField($title = _t('DataObjectManager.IMPORTFROMFOLDER', 'Import from an existing folder'), $headingLevel = 3);
Usability
- Link on every value to edit the data-record.
- Adding title-tags to edit & delete-links like “<a class="popuplink editlink" href="$EditLink" title="<% _t('EDIT', 'Edit') %>">â€
- Close-Buttons in the Popup-Windows
- Buttons for “save & closeâ€, “closeâ€
Thanks for the great work!