Re: [Radiant] Re: File-based Snippets/Layouts with Support for Radiant Tags?

2008-08-25 Thread Keith Bingman
Hmm. Still giving me problems. It seems like the array is loading, but eĀ“the model extensions are not... Keith On Aug 26, 2008, at 3:13 AM, Sean Cribbs wrote: Oh, I forgot to mention that your extension must load before the file_system extension for this to work: config.extensions = [:all,

Re: [Radiant] Re: File-based Snippets/Layouts with Support for Radiant Tags?

2008-08-25 Thread Sean Cribbs
Oh, I forgot to mention that your extension must load before the file_system extension for this to work: config.extensions = [:all, :file_system] -- should do the trick in config/environment.rb. Sean Keith Bingman wrote: On Aug 25, 2008, at 4:35 PM, Sean Cribbs wrote: I think it would be

Re: [Radiant] Re: File-based Snippets/Layouts with Support for Radiant Tags?

2008-08-25 Thread Keith Bingman
On Aug 25, 2008, at 4:35 PM, Sean Cribbs wrote: I think it would be quite straightforward to add the functionality in a similar fashion for 'text-assets' such as stylesheets and javascript files. If I understand Sean's design correctly, I think his intention was that extension authors co

Re: [Radiant] Re: File-based Snippets/Layouts with Support for Radiant Tags?

2008-08-25 Thread Keith Bingman
It just so happens that I was playing around with getting the file_system extension to work with SNS when I came across a nasty conflict. It seems that SNS uses the attribute "filename" instead of name. Because the file_system extension uses this as well, it leads to all sorts of nasty issu

Re: [Radiant] Re: File-based Snippets/Layouts with Support for Radiant Tags?

2008-08-25 Thread Andrew Neil
I'd call the support for Pages shaky at best, and I'd still recommend manipulating those in the regular interface. Agreed. The Page model is far more complex than Snippets and Layouts, because it has_many PageParts, and acts_as_tree. I'm road testing the extension myself at the moment, an

Re: [Radiant] Re: File-based Snippets/Layouts with Support for Radiant Tags?

2008-08-25 Thread Sean Cribbs
I think it would be quite straightforward to add the functionality in a similar fashion for 'text-assets' such as stylesheets and javascript files. If I understand Sean's design correctly, I think his intention was that extension authors could make their custom models play with the FileSystem

Re: [Radiant] Re: File-based Snippets/Layouts with Support for Radiant Tags?

2008-08-25 Thread Andrew Neil
On 25 Aug 2008, at 14:13, Arik Jones wrote: Andrew Neil wrote: The file_system extension exists for this purpose. Check it out: http://github.com/nelstrom/radiant-file-system-extension/tree/master I should warn you that it is still under development, so if you do use it, take care! I woul