bcms_seo_sitemap 1.0.1 → 1.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/README.markdown CHANGED
@@ -12,22 +12,26 @@ The xml document is exposed at /sitemaps/google.xml
12
12
 
13
13
  ## Installation
14
14
 
15
- The Seo Sitemap module installs like most other BrowserCMS modules (http://guides.browsercms.org/installing_modules.html)
16
- but it does not require a database migration.
15
+ The Seo Sitemap module installs like most other BrowserCMS modules.
16
+ You'll also need to install the [Settings module](https://github.com/browsermedia/bcms_settings)
17
+ which Seo Sitemap uses to write configuration values. Setting up both modules at
18
+ once is easy though:
19
+
20
+ gem install bcms_seo_sitemap # This will install the settings gem as well.
17
21
 
18
- gem install bcms_seo_sitemap
19
-
20
22
  ## Set up your application to use the module
21
23
 
22
- ### 1. Edit config/environment.rb
23
-
24
+ ### 1. Edit config/environment.rb
25
+
24
26
  config.gem "browsercms"
27
+ config.gem "bcms_settings"
25
28
  config.gem "bcms_seo_sitemap"
26
-
29
+
27
30
  ### 2. Run the following commands
28
-
31
+
29
32
  script/generate browser_cms
30
-
33
+ rake db:migrate
34
+
31
35
  ### 3. Edit config/routes.rb
32
36
 
33
37
  Make sure the routes.rb loads the sitemap routes.
@@ -35,10 +39,14 @@ Make sure the routes.rb loads the sitemap routes.
35
39
  map.routes_for_bcms_seo_sitemap
36
40
  map.routes_for_browser_cms
37
41
 
42
+ ### 4. Add the following line to the browsercms.rb initializer
43
+
44
+ Cms::Settings.synchronize
45
+
38
46
  ##Configuration
39
47
 
40
- The module adds a new entry under Administration > Tools labeled XML Sitemaps
41
- where the module can be configured.
48
+ The module adds a new entry under Administration > Tools labeled "Google
49
+ Sitemap" where the module can be configured.
42
50
 
43
51
  At the moment, only the "depth" option is available, which is passed to the
44
52
  menu_items helper method. Setting a depth of 2 will result in a call to menu_items
@@ -46,9 +54,8 @@ like this:
46
54
 
47
55
  menu_items(:depth => 2, :show_all_siblings => true, :page => Page.find_by_path('/')
48
56
 
49
- The module's configuration (currently just one value) is serialized to yaml and
50
- kept in config/sitemap.yml. It is not necessary to create this file manually. It
51
- will be created when needed.
57
+ The module's configuration (currently just one value) is written to a global key
58
+ value store provided by the Settings module.
52
59
 
53
60
  A depth value of 0 (the default) will include all published pages.
54
61
 
@@ -25,7 +25,7 @@
25
25
  <li<%= ' class="open"' if @menu_section == 'caching' %>><%= link_to "Page Caching", cms_cache_path %></li>
26
26
  <li<%= ' class="open"' if @menu_section == 'redirects' %>><%= link_to "Redirects", cms_redirects_path %></li>
27
27
  <li<%= ' class="open"' if @menu_section == 'email_messages' %>><%= link_to "Email Messages", cms_email_messages_path %></li>
28
- <li<%= ' class="open"' if @menu_section == 'xml_sitemaps' %>><%= link_to "XML Sitemaps", cms_xml_sitemaps_path %></li>
28
+ <li<%= ' class="open"' if @menu_section == 'xml_sitemaps' %>><%= link_to "Google Sitemap", cms_xml_sitemaps_path %></li>
29
29
  </ul>
30
30
  </div>
31
31
  <div class="bottom_cap"></div>
@@ -5,7 +5,12 @@
5
5
  <div class="fields text_fields">
6
6
  <label for="depth"> Sitemap Depth</label>
7
7
  <%= text_field_tag :depth, @depth %>
8
- </div> <div class="buttons">
9
- <%= lt_button_wrapper(submit_tag("Update", :class => "submit")) %>
8
+ <div class="instructions">How many levels deep into the site's hierarchy should be included in the Sitemap.<br >
9
+ A value of 0 will include all levels.
10
+ </div>
11
+ <br clear="all">
12
+ </div>
13
+ <div class="buttons">
14
+ <%= lt_button_wrapper(submit_tag("Save", :class => "submit")) %>
10
15
  </div>
11
16
  <% end %>
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bcms_seo_sitemap
3
3
  version: !ruby/object:Gem::Version
4
- hash: 21
4
+ hash: 19
5
5
  prerelease: false
6
6
  segments:
7
7
  - 1
8
8
  - 0
9
- - 1
10
- version: 1.0.1
9
+ - 2
10
+ version: 1.0.2
11
11
  platform: ruby
12
12
  authors:
13
13
  - BrowserMedia
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2010-11-29 00:00:00 -06:00
18
+ date: 2010-11-30 00:00:00 -06:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency