Welcome Guest, Not a member yet? Register   Sign In
CI + DataMapper + sort relationships
#7

[eluser]Chad Fulton[/eluser]
I've used a system similar to this to allow easy custom ordering of menu items. In my case, I don't need an intermediate table, since I use a self-referential type relationship (and I'm afraid I've never used DataMapper, so I can't comment on it specifically).

I won't comment on your back-end implementation, since I'm not really sure what you're going for, but I thought I'd suggest that if you're interested in an AJAX front end, you might consider the jQueryUI draggable functionality, which is what I've been using.

A few caveats:
1. It's a big pain to set up nesting with it. When I did it (a few months ago), I sort of had to make it up as I went along, since it's not well documented (even though it's a much-requested feature), and there are a bunch of quirks to work out.

2. jQuery UI is pretty huge by default(200kb), although if you only want the draggable functionality, I think you can get it to be manageable (26kb or so, in addition to the 57kb of jQuery itself, and less if you gzip).


Messages In This Thread
CI + DataMapper + sort relationships - by El Forum - 11-05-2009, 08:13 AM
CI + DataMapper + sort relationships - by El Forum - 11-05-2009, 08:53 AM
CI + DataMapper + sort relationships - by El Forum - 11-05-2009, 10:09 AM
CI + DataMapper + sort relationships - by El Forum - 11-05-2009, 10:20 AM
CI + DataMapper + sort relationships - by El Forum - 11-05-2009, 10:31 AM
CI + DataMapper + sort relationships - by El Forum - 11-05-2009, 11:12 AM
CI + DataMapper + sort relationships - by El Forum - 11-05-2009, 04:42 PM
CI + DataMapper + sort relationships - by El Forum - 11-09-2009, 06:32 PM
CI + DataMapper + sort relationships - by El Forum - 11-09-2009, 07:34 PM



Theme © iAndrew 2016 - Forum software by © MyBB