Jump to:

7921 Posts in 1359 Topics by 933 members

DataObjectManager Module

SilverStripe Forums » DataObjectManager Module » Preview: DataObjectManager module

Discuss the DataObjectManager module, and the related ImageGallery module.

Moderators: martimiz, UncleCheese, Howard, Sean, Ryan M., biapar, Willr, Ingo, swaiba, simon_w

Go to End
Author Topic: 54682 Views
  • UncleCheese
    Avatar
    4085 Posts

    Re: Preview: DataObjectManager module Link to this post

    Wow! Thanks for the accolades, guys. I can't wait to give this feedback to the higher-ups.

    In other news... OMFG!!! NEW STUFF!!!!

    Relation DataObjectManagers

    - HasOneDataObjectManager
    - HasManyDataObjectManager
    - ManyManyDataObjectManager

    All checked in, but lightly tested.

    - HasOneFileDataObjectManager (coming soon)
    - HasManyFileDataObjectManager (coming soon)
    - ManyMayFileDataObjectManager (coming soon)

    SimpleHTMLEditorField

    Allows HTML editing in your popup window! Documentation here:
    http://doc.silverstripe.com/doku.php?id=simplehtmleditorfield

    Dok-you-men-tay-shun

    Finally posted at:
    http://doc.silverstripe.com/doku.php?id=modules:dataobjectmanager

    ZIP file

    Coming soon!

  • wasser
    Avatar
    Community Member
    1 Post

    Re: Preview: DataObjectManager module Link to this post

    UncleCheese, as other's have already mentioned: Fantastic work!! I am successfully using this module.

    I have a, perhaps silly, question. Any chance making this work w/ ModelAdmin, in particular the re-ordering aspect?

    Thanks

  • Howard
    Avatar
    Forum Moderator
    215 Posts

    Re: Preview: DataObjectManager module Link to this post

    The great work just keeps coming! Thanks for the new calendar function, will text it when the below error is sorted

    I might have a bug here, either in your code or mine but it seems to sometimes happen and sometimes not... oh I'm running latest svn. I get the error:

    [Notice] Object of class Text to string conversion
    GET /admin/

    Line 514 in /var/www/vhosts/skrig.co.nz/httpdocs/dataobject_manager/code/FileDataObjectManager.php

    If i comment out sections of my PlanningPage.php file i can get the site to load but it doesn't seem to be consistently the same line of code which makes me wonder if there is something else going on. I have pastied the details of the error and my relevant code here: http://pastie.org/410765

    Thanks
    Howard

  • UncleCheese
    Avatar
    4085 Posts

    Re: Preview: DataObjectManager module Link to this post

    Interesting. It's a low-level error, so if you turn down your error reporting is should at least allow the script to run. Try this in the meantime

    I assume you're using a custom gridLabelField? Add ->XML_val to the return values of the obj() method.

    506 public function FileLabel()
    507 {
    508 if($this->parent->gridLabelField)
    509 $label = $this->obj($this->parent->gridLabelField)->XML_val;
    510 else if($file = $this->obj($this->parent->fileFieldName))
    511 $label = $file->Title->XML_val;
    512 else
    513 $label = "";
    514 return strlen($label) > 30 ? substr($label, 0, 30)."..." : $label;
    515 }
    516
    517 }
    518

    If that works, let me know, then undo all your changes to the class and I'll check in a new version. thanks.

  • somaboy
    Avatar
    Community Member
    8 Posts

    Re: Preview: DataObjectManager module Link to this post

    Hi Unclecheese

    This would be very useful for me. However, I cant get the UI to work correctly.

    I installed from svn and am running your Resource and ResourcePage classes as a test.

    I can create ResourcePages in the cms, but when i open the popup to add resources, there's nothing underneath the "Upload Files from my computer" bar. See screenshot.

    I'm running Firefox 3.0.7 under Mac OS X 10.5, latest Flash player installed.

    Attached Files
  • Anonymous user
    Avatar
    Community Member
    1 Post

    Re: Preview: DataObjectManager module Link to this post

    Hello, there is a number of problems with swfupload and the latest Mac Flash Player, so I guess that's the reason why you cannot upload. Try downgrading Flash.

  • somaboy
    Avatar
    Community Member
    8 Posts

    Re: Preview: DataObjectManager module Link to this post

    thanks for your reply

    which version would you consider safe to use?

    do you expect these issues to be resolved soon?

    thanks!

    soma

  • Anonymous user
    Avatar
    Community Member
    1 Post

    Re: Preview: DataObjectManager module Link to this post

    Not being a Mac user myself and only hearing their complaining, I really have no clue Just try the last version 9 player, I think this fixed it for most people.

    And then, there's news of some improvements over at the swfupload site, so maybe this will be resolved soon.

    54682 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.