Hi Adam,

A couple of thoughts-
I think you described something similar to what acts_as_list does - adds a
position int field.

Drag-n-drop-
In mental, front-end drag can be accomplished by making two changes to
views/admin/page/index.rhtml:

<tbody id="list">

and anywhere at the bottom of the page:

<%= sortable_element 'list', 
      :tag => 'tr',
      :update => 'list-info',  
      :complete => visual_effect(:highlight, 'list'), 
      :url => { :action => "children" } %>

http://wiki.script.aculo.us/scriptaculous/show/Sortable.create

These ideas are just a potential starting point.  I've verified the front-end
javascript works in firefox 2.

If someone does these two things, they see some issues right way:

* the ajax action call to children doesn't work.  I'm just testing whether or
not drag-n-drop will work with tables instead of lists.  So far, so good.  The
server-side code still needs to be written.

*  code would test for when a page has children.  drap-n-drop gets funky when
you move pages with children (possibly using the "only" option when setting up
the sortable_element.  See wiki link above)

Well, I just wanted to share some things I've experienced so far.  I'd love to
get ordering of pages working.

Todd



Quoting Adam Salter <[EMAIL PROTECTED]>:

> Just a suggestion on how it could be implemented...
> How about a concept of 'weights' for pages.... ranging from -9 to +9,  
> with the default being 0. It becomes easy to order pages using this  
> method... just assign -1 to any pages you want above the default, +1  
> to any below the default. Etc ad inspirum. (I just made that up -  
> probably not real latin :)
> Note: This also means that you can still order alphabetically, for  
> example, but page weights have priority.
> Drag and drop ordering sounds very difficult and complicated... this  
> would work and be easy to implement in the short term.
> 
> On 27/01/2007, at 5:37 AM, John W. Long wrote:
> 
> > Loren Johnson wrote:
> >> I don't currently feel qualified to work-up a new patch nor improve
> >> the existing one,  but I've got $$$ (seriously) for the first one to
> >> do it well enough to get it included in a core release.
> >
> > I have a client who wants to help foot the bill for this. Contact me
> > directly if you want to help.
> >
> > --
> > John Long
> > http://wiseheartdesign.com
> > _______________________________________________
> > Radiant mailing list
> > Post:   [email protected]
> > Search: http://radiantcms.org/mailing-list/search/
> > Site:   http://lists.radiantcms.org/mailman/listinfo/radiant
> _______________________________________________
> Radiant mailing list
> Post:   [email protected]
> Search: http://radiantcms.org/mailing-list/search/
> Site:   http://lists.radiantcms.org/mailman/listinfo/radiant
> 


_______________________________________________
Radiant mailing list
Post:   [email protected]
Search: http://radiantcms.org/mailing-list/search/
Site:   http://lists.radiantcms.org/mailman/listinfo/radiant

Reply via email to