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
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
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
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: [email protected]
Search: http://radiantcms.org/mailing-list/search/
Site: http://lists.radiantcms.org/mailman/listinfo/radiant
–
Bojan M.
Informatika Mihelac, Bojan M. s.p. | www.informatikamihelac.com
→ tools, scripts, tricks from our code lab: http://source.mihelac.org
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
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.
On 9/26/06, Bojan M. [email protected] wrote:
a part of the core as far as I can tell. The reasoning behind this is
KevBojan
Search: http://radiantcms.org/mailing-list/search/
Radiant mailing list
Post: [email protected]
Search: http://radiantcms.org/mailing-list/search/
Site: http://lists.radiantcms.org/mailman/listinfo/radiant
–
Kevin A.
Technical Director
BN23 Search Ltd.
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/
–
Bojan M.
Informatika Mihelac, Bojan M. s.p. | www.informatikamihelac.com
→ tools, scripts, tricks from our code lab: http://source.mihelac.org
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs