Jump to:

7940 Posts in 1543 Topics by 946 members

DataObjectManager Module

SilverStripe Forums » DataObjectManager Module » Preview: DataObjectManager module

Discuss the DataObjectManager module, and the related ImageGallery module.

Moderators: martimiz, UncleCheese, Sean, biapar, Willr, Ingo, swaiba, simon_w

Go to End
Author Topic: 61198 Views
  • Aram
    Avatar
    Community Member
    598 Posts

    Re: Preview: DataObjectManager module Link to this post

    also getting a strange effect where the text in the content field appears above the table, until you do something with the table (search, filter, add a resource etc.) then it disappears. This happens on both my work machine and my laptop in all browsers.

    Is this deliberate?

  • UncleCheese
    Avatar
    4085 Posts

    Re: Preview: DataObjectManager module Link to this post

    That is deliberate. I didn't see a need to keep the persistent text. Gets kind of annoying.

  • UncleCheese
    Avatar
    4085 Posts

    Re: Preview: DataObjectManager module Link to this post

    SVN checkout is now available. I had a couple different versions floating around, so I may not have gotten the SVN right. If you run into problems, please post here and I'll check in a fix as soon as I can.

    Documentation is not ready yet, but I have included example code in code/examples

    svn co http://carlinowebdesign.svn.beanstalkapp.com/modules/trunk/dataobject_manager

  • UncleCheese
    Avatar
    4085 Posts

    Re: Preview: DataObjectManager module Link to this post

    Something is screwy. Hold off until I fix it.

  • UncleCheese
    Avatar
    4085 Posts

    Re: Preview: DataObjectManager module Link to this post

    Okay, that ought to do it.

    It requires the swfupload extension, so you'll need to check out each of the following:

    svn co http://carlinowebdesign.svn.beanstalkapp.com/modules/trunk/dataobject_manager
    svn co http://carlinowebdesign.svn.beanstalkapp.com/modules/trunk/swfupload

  • Chucky2k
    Avatar
    Community Member
    32 Posts

    Re: Preview: DataObjectManager module Link to this post

    Hi UncleCheese

    I've been trying to use the ResourcePage example and I can get everything working except being able to get the page template to display all the information. I managed to fumble my way to use $Name and $Description to get their information to appear on the site but I am stuck with getting the Attachment to appear. Can you point me in the right direction with this.

    Thanks

  • UncleCheese
    Avatar
    4085 Posts

    Re: Preview: DataObjectManager module Link to this post

    Have you tried this?

    <a href="$Attachment.URL">Download</a>

    Be sure to check out the latest. Lots of updates today.

  • Bo_Einzeller
    Avatar
    Community Member
    18 Posts

    Re: Preview: DataObjectManager module Link to this post

    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!

    61198 Views
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.