Spree::BaseController.class_eval do

  before_filter :get_pages
  helper_method :current_page
  
  def current_page
    @page ||= Spree::Page.find_by_path(request.path)
  end
  
  def get_pages
    return if request.path =~ /^\/+admin/
    @pages ||= Spree::Page.visible.order(:position)
  end

end

Spree::BaseController.class_eval do
  before_filter :get_pages
  helper_method :current_page

  def current_page
    @page ||= Spree::Page.find_by_path(request.path)
  end

  def get_pages
    return if request.path =~ /^\/+admin/
    @pages ||= Spree::Page.visible.order(:position)
    @content_snippets ||= Spree::Page.where(title: "Content Snippets").first
  end
end

Add the ability to use a global content snipperts page.
Add the ability to use a global content snipperts page.
