7913 Posts in 1355 Topics by 930 members
DataObjectManager Module
SilverStripe Forums » DataObjectManager Module » mixing dataobjectmanager with complextablefield breaks ctf
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: | 1878 Views |
-
mixing dataobjectmanager with complextablefield breaks ctf

17 May 2009 at 9:01am
hi
i just noticed paging ('view next 10') is not working any more in one of my complextablefields. instead of paging (which should be an ajax request), a new html page is opened containg the unstyled ctf. same for the 'view' action.
inside the 'getCmsFields' function i'm also using a dataobjectmanager - when i leave it out, my ctf is working again.unfortunately, i can't replace the ctf with a dom (see http://silverstripe.org/dataobjectmanager-module-forum/show/260716)
maybe someone can help here, first time i'm having problems with this otherwise awesome module...
-
Re: mixing dataobjectmanager with complextablefield breaks ctf

17 May 2009 at 12:53pm Last edited: 17 May 2009 12:53pm
Yeah, I have tested DOM with a CTF running concurrently and I've had a fair amount of success. It doesn't surprise me that it's breaking, though. There's a lot of exposure to Javascript conflicts.
Your HasOneDataObjectManager bug is one I'm aware of, but still haven't figured out. The quick fix is to change the Title field to something like Name, and it will work fine.
-
Re: mixing dataobjectmanager with complextablefield breaks ctf

17 May 2009 at 7:45pm
thanks for your response. is there some ticket system for dom? would be nice to have milestones for dom in open.silverstripe.org - now that it has its own forum... ;-)
as you suggested, i tried using a name field for HasOneDataObjectManager, and yes, the content shows up - but the layout is still broken. annoying i can't upload files here, so i used my flickr account:
see http://farm3.static.flickr.com/2139/3538394898_d04abfedb0_o.jpg -
Re: mixing dataobjectmanager with complextablefield breaks ctf

18 May 2009 at 3:44am
Wow. Browser/OS?
-
Re: mixing dataobjectmanager with complextablefield breaks ctf

18 May 2009 at 6:03am
vista / firefox 3. same on ie7
-
Re: mixing dataobjectmanager with complextablefield breaks ctf

18 May 2009 at 8:49am
Can you confirm that the layout is not broken when using a standard DataObjectManager? I have a feeling it's the radio button that is causing that.
-
Re: mixing dataobjectmanager with complextablefield breaks ctf

18 May 2009 at 7:48pm
simple dom is doing fine.
i compared the html of both dom and hasone-dom and found a class missing in hasone-dom:dom
<div style="width: 100%;" id="list-holder" class="list column1">
hasone-dom
<div style="width: 100%;" id="list-holder" class="column1">
see the missing 'list' class in hasone-dom? when i set it in the hasone-dom using firebug, everything's fine again!
do you have an idea / could you give me a hint where to look for this in the source? -
Re: mixing dataobjectmanager with complextablefield breaks ctf

19 May 2009 at 2:34am
Are you sure you're on the latest version? I'm looking at the source on line 39 of RelationDataObjectManager and I have:
<div class="list column{$Headings.Count}" id="list-holder" style="width:100%;">
| 1878 Views | ||
| Go to Top | Next > |

