Sha256: da2cd9c1c755eac378cbc58b4722a727a6a1753ea2ebde5aa48bbbeb090c1dcc

Contents?: true

Size: 444 Bytes

Versions: 12

Compression:

Stored size: 444 Bytes

Contents

class Spud::Cms::SitemapsController < Spud::ApplicationController
	respond_to :xml
	caches_page :show,:expires_in => 1.day
	def show
		@pages = SpudPage.published_pages.public.order(:spud_page_id)
		if Spud::Core.multisite_mode_enabled
			site_config = Spud::Core.site_config_for_host(request.host_with_port)
			@pages = @pages.site(!site_config.blank? ? site_config[:site_id] : nil) 
		end
		@pages = @pages.all
		respond_with @pages
	end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
spud_cms-0.8.17 app/controllers/spud/cms/sitemaps_controller.rb
spud_cms-0.8.15 app/controllers/spud/cms/sitemaps_controller.rb
spud_cms-0.8.14 app/controllers/spud/cms/sitemaps_controller.rb
spud_cms-0.8.13 app/controllers/spud/cms/sitemaps_controller.rb
spud_cms-0.8.12 app/controllers/spud/cms/sitemaps_controller.rb
spud_cms-0.8.11 app/controllers/spud/cms/sitemaps_controller.rb
spud_cms-0.8.10 app/controllers/spud/cms/sitemaps_controller.rb
spud_cms-0.8.9 app/controllers/spud/cms/sitemaps_controller.rb
spud_cms-0.8.7 app/controllers/spud/cms/sitemaps_controller.rb
spud_cms-0.8.6 app/controllers/spud/cms/sitemaps_controller.rb
spud_cms-0.8.5 app/controllers/spud/cms/sitemaps_controller.rb
spud_cms-0.8.4 app/controllers/spud/cms/sitemaps_controller.rb