[Radiant] Overriding front-end URL routing

Sean Cribbs seancribbs at gmail.com
Thu Apr 24 10:02:16 CDT 2008


David,

You could create a special Page type that acts like a rewrite rule, 
redefining find_by_url so that it scopes to your "buried" page.  If you 
want to go the simple route, you could rewrite the URL in your webserver 
before it gets to Radiant, but that would be uneditable from the Radiant 
interface.

Sean

David Piehler wrote:
> Hello,
>
> I have a few sections in a client project that are buried a bit deep,
> which creates longer-than-desired URLs...
>
> home
> - about
> -- newsroom
> --- press
> --- announcements
> --- events
>
> The Press section URLs looks like this...
> /about/newsroom/press/
> /about/newsroom/press/article-name/
>
> Is there any way to override this and have tags for these third-level
> sections output and resolve to URLs like...
> /press/
> /press/article-name/
>
> I could simply move these sections to be root-level, but I'd like to
> avoid that if possible for a few reasons.
>
> Thanks,
> - Dave
>   



More information about the Radiant mailing list