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
I´ve seen the haml plugin is in core and in the extension! removed the
one in the extension and then the error did not show up:
\vendor\extensions\multi_site\vendor\plugins\haml
Patxi
Keith B. schrieb:
Hi,
could someone explain me how to config the multi_site extension?
I would like to organize 2 domains for example:
http://www.site1.com
http://www.site2.com
SITES config:
Name: Site1
Domain pattern???
Base domain name: http://www.site1.com
Hompage ID: 1
Name: Site2
Domain pattern???
Base domain name: http://www.site2.com
Hompage ID: …
Is the base domain name correct?
For what is the domain pattern?
Can I test this behavior with localhost:3000 ?
Thanks for help,
Patxi
Name: Site1
Domain pattern: site1
Base domain name: http://www.site1.com
Hompage ID: 1
Name: Site2
Domain pattern: site2
Base domain name: http://www.site2.com
Hompage ID: (let this figure it out)
That should do it.
On Thu, May 22, 2008 at 10:48 AM, Patxi [email protected] wrote:
SITES config:
Post: [email protected]
Search: http://radiantcms.org/mailing-list/search/
Site: http://lists.radiantcms.org/mailman/listinfo/radiant
–
\m/^.^\m/
“Some scientists claim that hydrogen,
because it is so plentiful, is the basic building block of the universe.
I dispute that.
I say that there is more stupidity than hydrogen,
and that is the basic building block of the universe.”
-Frank Zappa
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 B. schrieb:
Wonderful!
I haven’t tested it out completely, but I can log in again. Thanks,
very good idea… I should have thought about that.
Keith
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