> -----Original Message-----
> From: Daniel Sheppard
> Sent: Friday, 14 September 2007 10:12 AM
> Subject: Re: [Radiant] 12,000 articles in a Radiant site?
>
> If you've got something like my situation, where you're using 
> something like ArchivePage and letting it have a few hundred children,
> then you'd want a way for a page type to be able to segment 
> the child list (ie, when expanding the archive page in the admin,
> instead of directly expanding to the children, it provides a 
> list of years which expand into months). 

And since I was inspired:

http://soxbox.no-ip.org/random_crap/admin_tree_structure.diff

Looks something like:

http://soxbox.no-ip.org/random_crap/admin_tree_structure.png


Basically, it gives a hook for pages to return their children 
in a manner fit for the admin interface. In this case, instead
of returning an actual page, the ArchivePage returns dummy
pages that in turn return parts of the child list.

Code is a little more awkward than I'd like (mainly just in 
archive_page.rb, the rest is pretty clean), but it works.

Doesn't lead itself to extension bundling as it needs to make
a change to one of the js files.

I was thinking maybe that tree_children and tree_child(slug)
might be a more appropriate way of performing find_by_url -
in that way the tree that you see in the admin interface has
a 1:1 relationship with each part of the slug. 

Dan.
_______________________________________________
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