module Spud::Cms::ApplicationHelper def sp_list_pages(options = {}) pages = SpudPage.public.published_pages start_page = nil if !options.blank? if options.has_key?(:exclude) pages = pages.where(["name NOT IN (?)",options[:exclude]]) end if options.has_key?(:start_page_id) start_page = options[:start_page_id] end if options.has_key?(:id) content = "