Sha256: b3664cf11a8e0fa532370b19b4156dfbcacddd8ee4f19e7ce9b6f02bc7b191ec

Contents?: true

Size: 441 Bytes

Versions: 22

Compression:

Stored size: 441 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] : 0)
		end
		@pages = @pages.all
		respond_with @pages
	end
end

Version data entries

22 entries across 22 versions & 2 rubygems

Version Path
spud_cms-0.9.21 app/controllers/spud/cms/sitemaps_controller.rb
spud_cms-0.9.20 app/controllers/spud/cms/sitemaps_controller.rb
spud_cms-0.9.18 app/controllers/spud/cms/sitemaps_controller.rb
tb_cms-1.0 app/controllers/spud/cms/sitemaps_controller.rb
tb_cms-0.9.18 app/controllers/spud/cms/sitemaps_controller.rb
spud_cms-0.9.17 app/controllers/spud/cms/sitemaps_controller.rb
spud_cms-0.9.15 app/controllers/spud/cms/sitemaps_controller.rb
spud_cms-0.9.14 app/controllers/spud/cms/sitemaps_controller.rb
spud_cms-0.9.13 app/controllers/spud/cms/sitemaps_controller.rb
spud_cms-0.9.12 app/controllers/spud/cms/sitemaps_controller.rb
spud_cms-0.9.11 app/controllers/spud/cms/sitemaps_controller.rb
spud_cms-0.9.10 app/controllers/spud/cms/sitemaps_controller.rb
spud_cms-0.9.9 app/controllers/spud/cms/sitemaps_controller.rb
spud_cms-0.9.8 app/controllers/spud/cms/sitemaps_controller.rb
spud_cms-0.9.7 app/controllers/spud/cms/sitemaps_controller.rb
spud_cms-0.9.6 app/controllers/spud/cms/sitemaps_controller.rb
spud_cms-0.9.5 app/controllers/spud/cms/sitemaps_controller.rb
spud_cms-0.9.4 app/controllers/spud/cms/sitemaps_controller.rb
spud_cms-0.9.3 app/controllers/spud/cms/sitemaps_controller.rb
spud_cms-0.9.2 app/controllers/spud/cms/sitemaps_controller.rb