7956 Posts in 1394 Topics by 945 members
|Go to End||Next >|
9 April 2009 at 12:50am
Hu, that's the code I am using now and it's not working!!!
Drye, I'm using the latest code (r107) so I don't think it's bad module code.
In your case, did you use FileDataObjectManager / ImageDataObjectManager on classname Page or did you subclass Page? The reason for this question is because I have FileDataObjectManager working when I subclass Page (e.g. class PartnerPage extends Page).
9 April 2009 at 1:00am
ImageDataObjectManager, like I changed it to in pastie code. However I did subclass page. Maybe you should try this as a subclass and make sure it functions or not, to remove any suspicion.
9 April 2009 at 1:22am
Whoa.. lots of developments since last night. Many thanks to Drye and Hu for stepping in on support.
There's a lot to take in among all of those posts, so would someone mind posting a synopsis of what bug exists, if any, and how you resolved it? I can issue a patch today if I can get a clear idea of what's going on. Thanks.
9 April 2009 at 3:22am
I did a test with your code. Everything is fine.
I also tested the situation without ->setParentClass and empty filter. Everything is fine.
Did you rebuild the database ?
9 April 2009 at 6:24am Last edited: 9 April 2009 6:25am
Great work Uncle Cheese! I've installed the module and it's running great.
I was wondering if there is an easy way to add export functionality to DataObjectManager since it extends ComplexTableField?
Thanks again for quite possibly the best addition to Silverstripe thus far.
9 April 2009 at 6:32am
I imagine it's really easy to implement. I've never used the export feature of CTF, so that's why I skipped over it. Probably just a matter of adding a button with the right action. Unless you wanted to be able export a custom view, e.g., after filting, sorting, or searching on the recordset. That would be cool!
9 April 2009 at 6:58am
I'm trying to add DataObjectManager to UserDefinedForm to help with sorting submissions, and exporting. ( for instance for mailing lists ). I did get it to add into UserDefinedForm, it just wont delete or edit or export lololol
9 April 2009 at 8:27am
To Hu, UncleCheese or anyone who could help.
The issue I have is what ntessore mentioned back on page 6 of this topic. When filedataobjectmanager is used on page class "Page" for instance it all works fine and there's no need for a filter clause or setParentClass. However, when you subclass Page, the subclassed pages show all the managed files. You can circumvent this by using a filter clause. However, with or without the filter clause, you cannot add any managed files to the subclassed pages. Basically, when you try to add a file to a page which is a subclass of Page, the added file does not stick to that page. Its PageID remains 0.
So the issue is always related to subclasses of a page type, not the page type itself. I'm not sure how ntessore resolved this issue. He mentioned using setParentClass, but I'm not sure exactly how and where I should use this, because my attempts at setParentClass have not worked.
|Go to Top||Next >|