spanner / radiant-multi-site-extension

An extension for Radiant CMS that lets you serve multiple sites (domains) from a single instance, with flexible scoping of other models to sites.
17 stars 6 forks source link

does not scope to sites with radiant edge (9.2) #4

Open catmando opened 13 years ago

catmando commented 13 years ago

tried this simple experiment:

started with a fresh radiant system radiant --database=sqlite3 test-system cp test-system db:bootstrap

added this multi_site extension

added a second site

everything works fine

upgraded to edge (rake radiant:freeze:edge)

after upgrade and migration just seems to ignore the domain (always goes to the site with page id 1)

everything looks and works fine in admin however.

catmando commented 13 years ago

okay here is the suggested fix (works for me anyway:)

need to replace references to url to path in page_extensions.rb (i.e. alias_method_chain :path, :sites, etc) ... then everything feels better

jomz commented 13 years ago

second that; I just pushed the patch here: https://github.com/jomz/radiant-multi-site-extension/commit/f5ea8ec444f45dd7e2ff82cd2a44f33f71e5b316