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

Sean Cribbs seancribbs at gmail.com
Sun Jan 20 16:34:35 CST 2008


> 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.
>   
Look in lib/syllabi_tags.rb for how the majority of the tags are 
defined.  Basically, there's <r:prefix>, <r:courses>, <r:syllabi> tags 
and various others below it.  All they do is assist in looping over the 
associations and emitting attributes, really.


Sean



More information about the Radiant mailing list