Method: Alchemy::Page#to_partial_path

Defined in:
app/models/alchemy/page.rb

#to_partial_pathObject

The page’s view partial is dependent from its page layout

Define page layouts

Page layouts are defined in the config/alchemy/page_layouts.yml file

- name: contact
  elements: [contactform]
  ...

Override the view

Page layout partials live in app/views/alchemy/page_layouts



300
301
302
# File 'app/models/alchemy/page.rb', line 300

def to_partial_path
  "alchemy/page_layouts/#{layout_partial_name}"
end