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 | Next > | |
| Author | Topic: | 54698 Views |
-
Re: Preview: DataObjectManager module

14 April 2009 at 1:43am
Hey,
@cheese: ok, if YOU didn't know extraFields by now, than it seems not to have such big popularity right now.
Formal speeching I refered to:
http://api.silverstripe.com/sapphire/core/DataObject.html#$many_many_extraFields
One of the very few (like 2-3) examples I found on the internet was the first post in this discussion:
http://groups.google.com/group/silverstripe-dev/browse_thread/thread/865b4b337c230b1c/f39328a56fc4afb4I gave it a try: It basicly works very well. The relation table gets (beside an ID and fields to save the IDs of the two involved Records) further columns (in the above mentioned example, the table saving the Posts<->Categories Relationship gets a further column named "PrimeCategory" of type boolean).
In the meanwhile, I've found out, that managing this extraFields with manymanycomplextable fields is not yet possible (refering to the "ToDo" remark on http://doc.silverstripe.com/doku.php?id=manymanycomplextablefield)
Greets from Mannheim (Germany),
Henning
-
Re: Preview: DataObjectManager module

14 April 2009 at 2:11am
Perfect! I've been looking for that functionality! I'll definitely look into it and hopefully get ManyManyDataObjectManager to support it. That's great news.
-
Re: Preview: DataObjectManager module

14 April 2009 at 2:36am
UncleCheese> The fix was to use the member method ComplexTableField::getParentIDName() to generate this fieldname correctly.
This fix helps a lot! Thank you!
-
Re: Preview: DataObjectManager module

14 April 2009 at 2:59am
Any chance we could create a forum folder for threads re Uncle Cheese's modules? This thread is so long that it is hard to quickly scan it to see if a particular topic/bug was already discussed. The Event Calendar Module thread is also very long.
-
Re: Preview: DataObjectManager module

14 April 2009 at 3:04am
Yeah, i've been saying that for a while. Who do we need to talk to? SS Admins? Hello?!
-
Re: Preview: DataObjectManager module

14 April 2009 at 4:48am Last edited: 14 April 2009 4:58am
Hi.
Just to say I'm using ImageDataObjectManager with PNG images without any trouble.
I put $limitFileTypes = array ('jpg', 'png'); into ImageDataObjectManager.phpBe safe.
-
Re: Preview: DataObjectManager module

14 April 2009 at 6:50am
I've just checked in a fix that will respect the "upload" permission.
$manager->setPermissions(array('add','edit','delete'));
Will disable the upload features in the popup.
-
Re: Preview: DataObjectManager module

14 April 2009 at 9:00am
UncleCheese, how's "$manager->setPermissions(array('add','edit','delete'));" supposed to work?
When I add that, it completely removes the Add Object(s) button so you cannot add any objects at all. I do not get any pop up anymore. I want to be able to import from an existing folder, just not upload from the computer using SWFUpload.
| 54698 Views | ||
| Go to Top | Next > |


