forked from radiant/radiant-multi-site-extension
-
Notifications
You must be signed in to change notification settings - Fork 0
/
README
52 lines (33 loc) · 1.54 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
= Multi Site
Created by Sean Cribbs, November 2007. Inspired by the original virtual_domain
behavior.
Multi Site allows you to host multiple websites on a single Radiant
installation.
Each site has its own independent sitemap/page-tree and these attributes:
name: Whatever you want to call the site
domain: A Ruby regular expression (without the //) to match the request
against
base_domain: A canonical domain name for doing quicker matches and for
generating absolute URLs against
homepage_id: The numerical database ID of the root page (usually
you can just leave this alone).
Included images are slightly modified from FamFamFam Silk Icons by Mark James:
http://www.famfamfam.com/lab/icons/silk/
== Installation
1) Unpack/checkout/export the extension into vendor/extensions of your
project.
2) Run the extension migrations.
$ rake production db:migrate:extensions
3) Run the extension update task.
$ rake production radiant:extensions:multi_site:update
4) Restart your server
== Other Extensions
Multi Site allows you to customize routes within your other extensions. To
restrict a route to a particular site, pass the site's name into the
conditions hash:
map.resources :things, :conditions => { :site => 'My Site' }
You can also scope a route to multiple sites with an array:
map.resources :things, :conditions => { :site => ['My Site', 'Your Site'] }
== Acknowledgments
Thanks to Digital Pulp, Inc. for funding the initial development of this
extension as part of the Redken.com project.