[Radiant] Manual page sorting in admin view

Keith Bingman keith at keithbingman.com
Sun Sep 24 16:15:21 CDT 2006


There is a patch for this, actually two I believe, but it is a little  
rough around the edges. For one thing, it breaks the CSS for the  
Snippets and Layouts pages, though this is easily fixed. I have used  
this patch on pretty much every site lately, as it makes them much  
nicer to use.

Here is a link: http://dev.radiantcms.org/radiant/ticket/199

If in anyone is interested in cleaning the patch up and trying to get  
it into the core, I would be willing to help. I have most of the CSS  
problems solved, but have not looked at the second reparenting patch.  
The biggest problem is switching John's very nice table over to an  
unordered list, but this is accomplished in the patch. The entire  
page index page needs to be changed, but this work is mostly done.

Keith Bingman


On Sep 24, 2006, at 9:44 PM, Giovanni Intini wrote:

> I think anyone would like that (me for sure). There was some talk  
> of dnd ordering in the list some time ago, check the archives, and  
> it was mostly positive talking :)
>
> 2006/9/24, Tom von Schwerdtner < tomvons at gmail.com>:
> This in part comes from my desire (like others) to generate tree-style
> navigation for a website, and (personally) to improve generated
> sitemaps.  This might introduces more complication than the end-result
> warrants, but I'll toss it out there anyway.
>
> What I'm thinking about (and unskillfully hacking at) is the ability
> to manually sort the admin view via DnD and to have <r:children> use
> this ordering. After some poking around, it looks like it would
> require these changes:
>
> 1) A new 'position' column in the pages table.
> 2) upon creation, a page would be given a position of
> parent.children.count - any virtual pages.  This would put new pages
> at the botom of the list (instead of placing them by title).
> 3) upon page deletion, any siblings with greater position would need
> that value decremented
> 4) a reposition method
> 5) tweaks to the page index view to allow the re-ordering, and some
> kinda no-JS fallback up/down arrows.
>
> There is quite likely more code it would touch... so I ask: does
> anyone want this and would it be worth it?
>
> -Tom
> _______________________________________________
> Radiant mailing list
> Post:   Radiant at lists.radiantcms.org
> Search: http://radiantcms.org/mailing-list/search/
> Site:   http://lists.radiantcms.org/mailman/listinfo/radiant
>
> _______________________________________________
> Radiant mailing list
> Post:   Radiant at lists.radiantcms.org
> Search: http://radiantcms.org/mailing-list/search/
> Site:   http://lists.radiantcms.org/mailman/listinfo/radiant

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.radiantcms.org/pipermail/radiant/attachments/20060924/1d49ab05/attachment.html


More information about the Radiant mailing list