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, line 8
def is_humpyard_dynamic_page?
  false
end
site_map(locale) click to toggle source
# File app/models/humpyard/pages/static_page.rb, line 12
def site_map(locale)
  if page.in_sitemap
    {
      :url => page.human_url(:locale => locale),
      :lastmod => page.last_modified,
      :children => page.child_pages.map{ |p| p.content_data.site_map(locale) }
    }
  else
    nil
  end
end