[Radiant] Re: multi_site extension and 0.6.7

Keith Bingman keith at keithbingman.com
Thu May 22 11:27:16 CDT 2008


Hi Patxi,

just comment the whole block at the top of module Multisite out. It is  
not needed anymore, as the made cache clear itself with every save.

Like this:

   def self.included(base)
     base.class_eval {
       alias_method_chain :index, :root
       alias_method_chain :clear_model_cache, :site
       alias_method_chain :continue_url, :site
       # %w{remove clear_cache}.each do |m|
       #  alias_method_chain m.to_sym, :back
       # end
     }
   end

Worked for me. I will try to fork it on github asap.

Keith



On May 22, 2008, at 5:21 PM, Patxi wrote:

> Hi Keith,
>
> what have you changed to get it running?
> I have changed 'clear_cache' to 'clear_model_cache' 2 times in
> \vendor\extensions\multi_site\lib\multi_site 
> \page_controller_extensions.rb
>
> Otherwise the server does not start.
>
> - Have you done the same?
> - Is this correct?
>
> I still get some errors in the admin control if I want to change  
> "slugs" ...
> I couldn´t test it on localhost. Is this possible?
>
> Thanks,
> Patxi
>
>
> Keith Bingman schrieb:
>> I realize that this does not yet work, but I thought I would give  
>> it a try. Unfortunately, I am stumped. There were a few errors with  
>> the clear_cache method in the page_controller, which I think I got.  
>> Now I am getting an error whenever I try to login in... I am pretty  
>> sure  it is in the application controller, but not really sure what  
>> it might be. Anyone else try this. I really like this extension,  
>> and have whole "families" of websites based on it
>> The error is:
>> Showing vendor/radiant/app/views/admin/page/index.html.haml where  
>> line # raised:
>> wrong number of arguments (1 for 0)
>> Extracted source (around line #):
>> Any help appreciated.
>> Keith
>
> _______________________________________________
> Radiant mailing list
> Post:   Radiant at radiantcms.org
> Search: http://radiantcms.org/mailing-list/search/
> Site:   http://lists.radiantcms.org/mailman/listinfo/radiant



More information about the Radiant mailing list