Module: Cms::TemplateSupport

Defined in:
app/helpers/cms/template_support.rb

Class Method Summary collapse

Class Method Details

.included(controller) ⇒ Object



5
6
7
8
9
10
11
12
13
14
15
16
17
18
# File 'app/helpers/cms/template_support.rb', line 5

def self.included(controller)
  controller.class_eval do
    include Cms::Authentication::Controller
    include Cms::ErrorHandling
    
    helper Cms::PageHelper
    helper Cms::MenuHelper
    helper do
      def cms_toolbar
        %Q{<iframe src="#{cms_toolbar_path(:page_toolbar => 0)}" width="100%" height="100px" frameborder="0" marginwidth="0" marginheight="0" scrolling="no" name="cms_toolbar"></iframe>}
      end
    end
  end
end