[Radiant] Combining Radiant with a Rails App
Harvey Bernstein
hb at bsemple.com
Sun Jul 9 12:15:55 CDT 2006
Andrew,
Thanks for your suggestion. The more I thought about my original idea the
less I liked. It just seemed to get more complicated which I definitely
wanted to avoid. My existing rails app uses a different caching method and
lots of Ajax.
I now think it would be better to keep the CMS and my app separate. I think
in the first instance, I am just going to end up with duplicate layout and
just share the main CSS file.
Thanks for your input, it has given me something to think about.
Harvey
On 7/7/06 00:33, "Andrew Hodgkinson" <ahodgkin at rowing.org.uk> wrote:
> Harvey Bernstein wrote:
>
>> Here's the thing. I want to keep DRY by making use of Radiant's layout
>> facilities, user management, tags (in particular breadcrumbs) and
>> snippets.
>
> I'm doing something broadly similar. I have a collection of Rails
> applications (RForum, Instiki, Typo etc.) all sharing some layout
> fragments with a global stylesheet defining the bulk of visual
> properties and custom stylesheets to cope with the quirks and different
> class/ID names used in the different application RHTML files. Some
> customisation of RHTML files was required in addition to this.
>
> For less dynamic pages, Radiant appears to be just what I need - a small
> team wants to edit effectively static content. Since Radiant has the
> concept of layouts and snippets, things like the shared header, footer
> and static sidebar content should probably be defined as snippets within
> Radiant. What I'd like to do is have these end up exported into the
> filesystem when they are changed, so that while Radiant keeps its own
> copy in the database, a synchronised copy appears in a shared location
> (accessed primarily by symlinks currently) so other parts of the site
> maintain layout. To do this I believe I will have to modify Radiant to
> save snippets to the filesystem as well as into the database when
> updated or created anew.
>
> This may be an approach you could use - turn the idea of incorporating
> your Views into Radiant on its head, and instead use exported bits of
> Radiant content in your other Views.
This e-mail has been scanned for all viruses by MessageLabs.
More information about the Radiant
mailing list