Module: Optimacms::Renderer::AdminPageRenderer::InstanceMethods

Defined in:
lib/optimacms/renderer/admin_page_renderer.rb

Instance Method Summary collapse

Instance Method Details

#render_with_edit(options = nil, extra_options = {}, &block) ⇒ Object


16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
# File 'lib/optimacms/renderer/admin_page_renderer.rb', line 16

def render_with_edit(options = nil, extra_options = {}, &block)

  #return render_base(options, extra_options, &block)

  #s = render_to_string(options, extra_options, &block)

  #
  #@__page_tpl = @pagedata.template
  #@__page_tpl_name = options || extra_options[:template]
  @pagedata.render_options = options
  @pagedata.render_extra_options = extra_options


  # template
  #@__page_tpl = Optimacms::PageServices::TemplateService.get_by_name(@__page_tpl_name)

  # data relations
  @__page_tpl_data_relations = (@pagedata.template.data_relations.all.index_by { |t| t.var_name } rescue [])


  #
  render_base 'optimacms/admin_page_edit/page', extra_options, &block
end