Re: [Radiant] Alias Page Extension

2007-03-13 Thread Brian Gernhardt
On Mar 12, 2007, at 7:26 PM, Daniel Sheppard wrote: I've taken the approach of having a separate table mapping urls to page numbers and a file not found behaviour that performs redirects for old mappings (I also trawl through my server logs for 404s and correct any repeated spelling

Re: [Radiant] Alias Page Extension

2007-03-13 Thread Daniel Sheppard
(Note that I also had to have a custom index page so that it could look at my custom file not found type). Wouldn't something like this in core be better? (COMPLETELY UNTESTED) - 8 - Index: page.rb === ---

Re: [Radiant] Alias Page Extension

2007-03-13 Thread Daniel Sheppard
I've taken the approach of having a separate table mapping urls to page numbers and a file not found behaviour that performs redirects for old mappings (I also trawl through my server logs for 404s and correct any repeated spelling mistakes / truncations) - I've left it as a

Re: [Radiant] Alias Page Extension

2007-03-13 Thread Daniel Sheppard
Are you sure that's what subclasses_of does? I know that there's definitely a method on ActiveRecord::Base that keeps track of subclasses as their created - maybe it's called something else - descendants maybe? - I can't remember, but I'm pretty sure it exists. lounge groggy #

Re: [Radiant] Alias Page Extension

2007-03-12 Thread Erik van Oosten
Thanks Brian, That is unfortunate for me, I was looking for the reverse :( I hoped to find an extension that would re-direct to another page so I can maintain some URLs when I migrate to Radiant. Regards, Erik. On Mar 11, 2007, at 3:41 PM, Erik van Oosten wrote: What does the extension

Re: [Radiant] Alias Page Extension

2007-03-11 Thread Brian Gernhardt
On Mar 11, 2007, at 3:41 PM, Erik van Oosten wrote: What does the extension do exactly? Is there a bit of documentation? Sorry about the terseness. Mark a page as an Alias Page, and add a source part. The source part is a path (not a URL) to another page in the system. Whenever the

[Radiant] Alias Page Extension

2007-03-10 Thread Brian Gernhardt
I've updated my alias behavior to an page type extension and added tests. http://silverinsanity.com/~benji/radiant/alias_page-0.1.tar.gz Questions, comments, and bug reports welcome. ~~ Brian ___ Radiant mailing list Post: