[Radiant] Programmatically getting access to the layout ?

Francois Beausoleil francois.beausoleil at gmail.com
Tue Jul 18 08:46:14 CDT 2006


Hi !

2006/7/18, John W. Long <ng at johnwlong.com>:
> Francois Beausoleil wrote:
> > Obviously, I'd like the layouts to be defined only once -- DRY.  Is
> > there a pre-defined way to get to the layout and reuse it in regular
> > Rails views ?
>
> Not at the moment. If you are interested in making this work take a look
> at #process on Behavior::Base:
>
> http://dev.radiantcms.org/radiant/browser/trunk/radiant/app/models/behavior.rb
>
> If the software you are creating is radically different from Radiant,
> you could just use Radius within your own administration system. Radius
> is the library that Radiant uses to process the <r:tag_name /> tags:

No, it is not radically different.  I just need a CMS that goes around
the parts that I code.  My first task will be attempting to make
Radiant an Engine or a plugin, so I can integrate it with my own
application.

I will look at how to get the layout programmatically.

Thanks !
-- 
François Beausoleil
http://blog.teksol.info/


More information about the Radiant mailing list