|
30 | 30 |
|
31 | 31 | create_site(:default, :name => "Default", :domain => "example.com") |
32 | 32 | create_section(:root, :name => "My Site", :path => "/", :root => true) |
33 | | -create_section(:system, :name => "system", :parent => sections(:root), :path => "/system", :hidden => true) |
34 | | -
|
35 | | -Cms::Group.all.each { |g| g.sections = Cms::Section.all } |
36 | 33 |
|
37 | 34 | create_page(:home, :name => "Home", :path => "/", :section => sections(:root), :template_file_name => "default.html.erb", :cacheable => true) |
| 35 | +
|
| 36 | +create_section(:system, :name => "system", :parent => sections(:root), :path => "/system", :hidden => true) |
38 | 37 | create_page(:not_found, :name => "Page Not Found", :path => "/system/not_found", :section => sections(:system), :template_file_name => "default.html.erb", :publish_on_save => true, :hidden => true, :cacheable => true) |
39 | 38 | create_page(:access_denied, :name => "Access Denied", :path => "/system/access_denied", :section => sections(:system), :template_file_name => "default.html.erb", :publish_on_save => true, :hidden => true, :cacheable => true) |
40 | 39 | create_page(:server_error, :name => "Server Error", :path => "/system/server_error", :section => sections(:system), :template_file_name => "default.html.erb", :publish_on_save => true, :hidden => true, :cacheable => true) |
|
52 | 51 | pages(:server_error).publish! |
53 | 52 | pages(:home).publish! |
54 | 53 |
|
| 54 | +Cms::Group.all.each { |g| g.sections = Cms::Section.all } |
| 55 | +
|
55 | 56 | unless Cms::DataLoader.silent_mode |
56 | 57 | puts "*************************************************" |
57 | 58 | puts "* YOUR CMS username/password is: cmsadmin/#{pwd}" |
|
0 commit comments