class Humpyard::Pages::StaticPage

Humpyard::Pages::StaticPage is a page only containing elements.

Public Instance Methods

is_humpyard_dynamic_page?() click to toggle source
   # File app/models/humpyard/pages/static_page.rb
 8 def is_humpyard_dynamic_page?
 9   false
10 end
site_map(locale) click to toggle source
   # File app/models/humpyard/pages/static_page.rb
12 def site_map(locale)
13   if page.in_sitemap
14     {
15       :url => page.human_url(:locale => locale),
16       :lastmod => page.last_modified,
17       :children => page.child_pages.map{ |p| p.content_data.site_map(locale) }
18     }
19   else
20     nil
21   end
22 end