On Jan 29, 2008 10:26 PM, Sean Cribbs <[EMAIL PROTECTED]> wrote:

> In this find_by_url method, you return the PersonPage if the URL is
> /people/18, but you don't call its find_by_url if the URL is
> /people/18/bio.  Remove the $ from the regexp and then instead of
> returning children.find_by_class_name('PersonPage'), return
> children.find_by_class_name('PersonPage').find_by_url(url, live,
> clean).  Then in your PersonPage, have several tests -- one that matches
> for itself (use the one below and substitute parent.url for self.url),
> and then any special cases (/bio, /contact, etc) that return the
> appropriate sub-page, then super.
>
> If this is unclear, write me back and I'll give more detail.


OK - got it. Thanks Sean.
_______________________________________________
Radiant mailing list
Post:   Radiant@lists.radiantcms.org
Search: http://radiantcms.org/mailing-list/search/
Site:   http://lists.radiantcms.org/mailman/listinfo/radiant

Reply via email to