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.1 app/controllers/spud/cms/sitemaps_controller.rb
spud_cms-0.9.0 app/controllers/spud/cms/sitemaps_controller.rb