In-depth view of Page#find_by_url

Posted by Jim Gay on Tuesday, June 22, 2010 | |

Over on the Saturn Flyer blog I’ve written up some details about how find_by_url works within the Page model.

Radiant allows you to override this method for subclasses of Page and change the behavior of the finder. I pull in an example from the Archive extension which implements a simple match against the request URI to pull up the appropriate archive index type pages.