17488 Posts in 4473 Topics by 1978 members
|Go to End|
6 December 2008 at 6:22pm
I want to have a Pagetype where I can add already existing pages.
As many as I want. Also a page can be in several different SummaryPages. Thus many-to-many relation.
And I want to have a nice way of setting the order.
The coolest way would be if I could just drag the pages into order.
Like you can do with the inputs in a user defined form.
Is there a nice and easy way(class, etc.) to realize this dragging ? I'm considering studying the userdefinedform module. But I'd prefer not to (don't have much time)
Or does someone know some concrete files, api sections, etc. , that could enlighten me ??
PS: Only a few days since I know and work with silverstripe.
8 December 2008 at 11:36pm
i was having the same trouble and couldn't find any solution for this in the forum.
the docs say it's a TODO (but they don't mention a release version for this?)
see http://doc.silverstripe.com/doku.php?id=complextablefield#todo ('Ajax-Sorting')
sometimes it's a way to have the sortable objects in the sitetree, as drag'n'drop sorting is possible there, but that might not be applicable for your scenario
in case you're willing to code it by yourself there might be some hints in this thread:
but i didn't really get it there...
9 December 2008 at 4:03am
Thanks for the answer , actually the "sortable objects in the sitetree" has already become a solution strategy for me.
This way I get the Drag and Drop and the possibility to decide the ordering.
Also I can immidiatly see, where the pages are.
Only thing was, I had to make my own virtual page, but this wasn't that hard. So my SummaryPages can have many pages. And the pages can belong to many SummaryPages. Thus I also got my many-many relation, too.
|Go to Top|