Sitemap done for backend and fronted

This commit is contained in:
Christophe Vilayphiou committed 2012-07-27 19:13:40 +08:00
1 parent 934b515914
commit a8cc581279
11 files changed
+54 -9

No files matched your search

+9
View File
@@ -161,6 +161,15 @@ module ParserCommon
end
end
# sitemap
def parse_sitemaps(body = nil, page = nil, edit=nil)
sitemap = body.css('sitemap').first
url = admin_site_sitemap_frontend_path(@site)
options = "?inner=true"
fragment = Nokogiri::HTML::DocumentFragment.new(body, "<div class='dymanic_load' path='#{url + options}'></div>")
sitemap.swap(fragment)
end
# page_contents
def parse_contents(body, page, edit=nil)
public_r_tags = []