class Humpyard::Pages::VirtualPage

Public Instance Methods

is_humpyard_dynamic_page?() click to toggle source
# File app/models/humpyard/pages/virtual_page.rb, line 8
def is_humpyard_dynamic_page?
  false
end
is_humpyard_virtual_page?() click to toggle source
# File app/models/humpyard/pages/virtual_page.rb, line 12
def is_humpyard_virtual_page?
  true
end
site_map(locale) click to toggle source
# File app/models/humpyard/pages/virtual_page.rb, line 16
def site_map(locale)
  if page.in_sitemap
    {
      :url => page.human_url(:locale => locale),
      :lastmod => page.last_modified,
      :hidden => true,
      :children => page.child_pages.map{ |p| p.content_data.site_map(locale) }
    }
  else
    nil
  end
end