[Radiant] Re: Re: Layouts, snippets and site assets on the file system?

2008-06-14 Thread Arik Jones
Gah! Shafted again! How long you gonna keep these awesome extensions 
under your wings? What detoxing needs to be done?

Sean Cribbs wrote:
 Jonathan McCoy wrote:
 settings.
   
 You just described the file_system extension written for Redken to a T.
 I would like to release it but I'm not ready to support it yet or to
 detox the code.
 
 Sean

-- 
Posted via http://www.ruby-forum.com/.
___
Radiant mailing list
Post:   Radiant@radiantcms.org
Search: http://radiantcms.org/mailing-list/search/
Site:   http://lists.radiantcms.org/mailman/listinfo/radiant


Re: [Radiant] share_layouts extension

2008-06-14 Thread [EMAIL PROTECTED]
On Sat, 2008-06-14 at 14:40 -0700, Will Emerson wrote:
 Through trial and error, I got the rails_support extension working in
 0.6.7 and Rails 2.0.2.

Do you have any pointers for getting the rails_support extension
working? I am about to tackle this and was wondering if you could share
anything about the process.

Thanks,
Nate

___
Radiant mailing list
Post:   Radiant@radiantcms.org
Search: http://radiantcms.org/mailing-list/search/
Site:   http://lists.radiantcms.org/mailman/listinfo/radiant


Re: [Radiant] share_layouts extension

2008-06-14 Thread Chris Parrish

Whoops, I lied.  You do *not* need to uncomment:
require_dependency 'application'

for your extension to play with share_layouts (unless you're doing 
something with your controllers in the activate method too).


I was looking at the wrong extension's code when I mistyped -- sorry.

-Chris


Chris Parrish wrote:

Will Emerson wrote:

Through trial and error, I got the rails_support extension working in
0.6.7 and Rails 2.0.2. But now I'm trying out the share_layouts
extension and I'm having some problems getting it to work. In this
project, my app is already made into an extension and I'm trying to
integrate with the Radiant part of the site. Will share_layouts work
being called from a controller in an extension? Or does it expect there
to be a RAILS_ROOT/app folder.
I'm using share_layouts within an extension (using the extension's 
controllers to process the page) currently with 0.6.7.  Make sure that 
you uncomment the following line from your my_extension_name.rb file:


 require_dependency 'application'


When I use the line
radiant_layout 'Main'

I get an error that radiant_layout in an undefined method.
  


Hmm, that's weird.  Where are you putting that line?  It should be 
available as a class method like:


 class MyController  ApplicationController
   radiant_layout 'Main'

   ... your methods/actions here...

 end


When I use

@radiant_layout = 'Main'

it creates the page but displays it in the admin layout.  ???
If I substitute a fake name for Main, it does the same thing so it
appears to be defaulting to the admin layout.

  


Do you actually have a layout created in Radiant called Main?

-Chris
___
Radiant mailing list
Post:   Radiant@radiantcms.org
Search: http://radiantcms.org/mailing-list/search/
Site:   http://lists.radiantcms.org/mailman/listinfo/radiant


___
Radiant mailing list
Post:   Radiant@radiantcms.org
Search: http://radiantcms.org/mailing-list/search/
Site:   http://lists.radiantcms.org/mailman/listinfo/radiant