[Radiant] How to make a virtual page like '/page/:id'

nn foobar.user at gmail.com
Sun Jan 20 13:54:45 CST 2008


On Jan 20, 2008 8:01 PM, Sean Cribbs <seancribbs at gmail.com> wrote:

> You're on the right track.  The "/people" page should be of a custom
> type that you create so that all child URLs are routed to a single
> virtual child page.  I did this for the "Syllabi" at KCKCC over a year
> ago.  Here's a link to the code:
>
> http://kck.esumm.com/www/html/vendor/extensions/syllabi/app/models/
>
> Look specifically at the "Syllabi Courses Page" and the "Syllabi
> Prefixes Page".  The "prefixes" page was used as the parent, the
> "courses" page as the virtual child.  You can see these in action at:
>
> http://www.kckcc.edu/academics/course-descriptions/


Thanks Sean. To my surprise, somehow I managed to make it work not long
after clicking on the send button. I also found your extension which helped
somehow, together with the archive extension. Who would say that simply
stearing long enough at the code you don't really understand could get you
somewhere. :) My head is spinning, but its fun.

Now I need to make use of model associations. I see the syllabi is
associated with courses etc, but haven't found yet how you use it in the
tags.



More information about the Radiant mailing list