class Humpyard::Pages::VirtualPage

Public Instance Methods

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