# RadiantCMS newbie question

**URL:** <https://www.ruby-forum.com/t/radiantcms-newbie-question/70054>\
**Category:** Radiant CMS\
**Created:** [September 26, 2006, 4:29pm UTC](https://www.ruby-forum.com/t/radiantcms-newbie-question/70054 "2006-09-26T16:29:03Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![bmihelac](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/5fc32e/32.png) [@bmihelac](https://www.ruby-forum.com/u/bmihelac)\
**Post date:** [September 26, 2006, 4:29pm UTC](https://www.ruby-forum.com/t/radiantcms-newbie-question/70054/1 "2006-09-26T16:29:03Z")

</div>

Hello all,  
I wander if it is possible to use ruby code directly in RadiantCMS or  
one have to wrap code in radius tags? What I would like is to use rails  
helper methods directly in snippets and layouts.

thanks for answer in advance,  
Bojan

---

<div class="post-metadata">

**Author:** ![bmihelac](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/5fc32e/32.png) [@bmihelac](https://www.ruby-forum.com/u/bmihelac)\
**Post date:** [September 26, 2006, 4:57pm UTC](https://www.ruby-forum.com/t/radiantcms-newbie-question/70054/2 "2006-09-26T16:57:17Z")

</div>

That’s currently outside the scope of Radiant. If you want “helpers”,  
the  
best way is to write your own Radius tags.

Sean C.  
[seancribbs.com](http://seancribbs.com)

---

<div class="post-metadata">

**Author:** ![bmihelac](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/5fc32e/32.png) [@bmihelac](https://www.ruby-forum.com/u/bmihelac)\
**Post date:** [September 26, 2006, 5:41pm UTC](https://www.ruby-forum.com/t/radiantcms-newbie-question/70054/3 "2006-09-26T17:41:24Z")

</div>

Thanks for answer Kevin.

So does it mean then that all benefits of Rails framework are taken by  
Radiant and developer have no much access to Rails framework? I really  
like how Radiant looks and feels but I wouldn’t like to throw away all  
great things Rails offers, including helpers, generators, routing, etc.

How easy is radiant to extend? I would like to see how one can integrate  
custom model into Radiant CMS, for example simple picture gallery or  
addressbook that is editable throught radiant.

If anyone knows some source…

best regards,  
Bojan

Kevin A. wrote:

> output of your page-parts, snippets, layouts etc then you will have to
> 
> > one have to wrap code in radius tags? What I would like is to use rails
> 
> * * *
> 
> Radiant mailing list  
> Post: removed\_email\_address@domain.invalid  
> Search: [http://radiantcms.org/mailing-list/search/](http://radiantcms.org/mailing-list/search/)  
> Site: [http://lists.radiantcms.org/mailman/listinfo/radiant](http://lists.radiantcms.org/mailman/listinfo/radiant)

–  
Bojan M.  
Informatika Mihelac, Bojan M. s.p. | [www.informatikamihelac.com](http://www.informatikamihelac.com)  
 → tools, scripts, tricks from our code lab: [http://source.mihelac.org](http://source.mihelac.org)

---

<div class="post-metadata">

**Author:** ![bmihelac](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/5fc32e/32.png) [@bmihelac](https://www.ruby-forum.com/u/bmihelac)\
**Post date:** [September 26, 2006, 5:01pm UTC](https://www.ruby-forum.com/t/radiantcms-newbie-question/70054/4 "2006-09-26T17:01:17Z")

</div>

Hi,

Unfortunately this feature isn’t available and isn’t likely to become  
a part of the core as far as I can tell. The reasoning behind this is  
that you really shouldn’t be letting end-users enter anything that is  
directly evaluated as ruby code as it opens up all sorts of security  
issues and would require a lot of filtering to make sure that the code  
is safe.

Right now, if you want to have any form of control over the logic and  
output of your page-parts, snippets, layouts etc then you will have to  
use the built-in radius tags, code your own tags or use a plugin that  
someone else has coded to perform specific functions.

Kev

> **[Digital Marketing Agency Glasgow | Digital Blueprint | Scotland](https://www.digitalblueprint.co.uk/)**
>
> Digital Blueprint is a full-service creative design and digital marketing agency that helps visionary companies realise their strengths and elevate their brands, crafting authentic experiences that engage and inspire audiences at every touch point.

---

<div class="post-metadata">

**Author:** ![bmihelac](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/5fc32e/32.png) [@bmihelac](https://www.ruby-forum.com/u/bmihelac)\
**Post date:** [September 26, 2006, 5:53pm UTC](https://www.ruby-forum.com/t/radiantcms-newbie-question/70054/5 "2006-09-26T17:53:26Z")

</div>

Hi Bojan,

At the moment Radiant can be extended with behaviors that allow pages  
to have specific functionality and plugins that extend radiant to  
provide global radius tags.

This doesn’t lend itself well to adding custom models without hacking  
the core. However, currently in development is a brand new plugins  
sytem that will allow addition of custom models as well as  
automatically extending the admin interface. Keep an eye on the  
development wiki and the radiant blog for more info on that.

With regards to taking away helpers, generators, routing etc then I  
think you’re looking at radiant as if it’s something that it’s not.  
Radiant is a self contained RoR application that provides (an  
extensible) Content Mangement System. It’s not a framework that you  
can use to build other RoR applications. It’s useful for managing a  
content orientated website where the content easily fits into “pages”  
(where “pages” can also have sub-items such as comments etc). This may  
change a bit once the new plugin system is finished but for the moment  
Radiant is very good at what it does and keeping what it does flexible  
enough to cater for most content sites.

Regards,  
Kevin A.

> **[Digital Marketing Agency Glasgow | Digital Blueprint | Scotland](https://www.digitalblueprint.co.uk/)**
>
> Digital Blueprint is a full-service creative design and digital marketing agency that helps visionary companies realise their strengths and elevate their brands, crafting authentic experiences that engage and inspire audiences at every touch point.

On 9/26/06, Bojan M. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> > a part of the core as far as I can tell. The reasoning behind this is  
> > Kev
> > 
> > > Bojan  
> > > Search: [http://radiantcms.org/mailing-list/search/](http://radiantcms.org/mailing-list/search/)
> 
> * * *
> 
> Radiant mailing list  
> Post: removed\_email\_address@domain.invalid  
> Search: [http://radiantcms.org/mailing-list/search/](http://radiantcms.org/mailing-list/search/)  
> Site: [http://lists.radiantcms.org/mailman/listinfo/radiant](http://lists.radiantcms.org/mailman/listinfo/radiant)

–  
Kevin A.

Technical Director  
BN23 Search Ltd.

---

<div class="post-metadata">

**Author:** ![bmihelac](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/5fc32e/32.png) [@bmihelac](https://www.ruby-forum.com/u/bmihelac)\
**Post date:** [September 26, 2006, 6:11pm UTC](https://www.ruby-forum.com/t/radiantcms-newbie-question/70054/6 "2006-09-26T18:11:28Z")

</div>

Hi Kevin,  
I just saw advanced plugin system in repository 🙂 I didn’t try it yet  
and not sure if it is already in state so one can play with it.

Like I saw in one presentation 80% of websites fits what Radiant can  
handle, but it would be great if you can use Radiant even if a website  
need to have custom control/model or two and not to loose 90% of time to  
do that 😉

best,  
Bojan

Kevin A. wrote:

> development wiki and the radiant blog for more info on that.  
> enough to cater for most content sites.
> 
> > like how Radiant looks and feels but I wouldn’t like to throw away all
> > 
> > > > Hello all,  
> > > > Search: [http://radiantcms.org/mailing-list/search/](http://radiantcms.org/mailing-list/search/)

–  
Bojan M.  
Informatika Mihelac, Bojan M. s.p. | [www.informatikamihelac.com](http://www.informatikamihelac.com)  
 → tools, scripts, tricks from our code lab: [http://source.mihelac.org](http://source.mihelac.org)
