Modifications in Layout
In the layout file we can have "contents" (for editable content) and "layout_parts" (for when the layout is created from scratch)
This commit is contained in:
1 parent
b2c0047d0f
commit
f4b1d1e182
6 files changed
+43
-48
No files matched your search
+1
-1
@@ -115,7 +115,7 @@ namespace :dev do
|
||||
|
||||
|
||||
home = Page.create!( :i18n_variable_id => var_10.id, :design_id => design_1.id, :name => 'home', :is_published => true, :theme_id => theme.id )
|
||||
home.page_parts.create!( :name => 'header_1', :content => File.open("#{Rails.root}/lib/template/home.page").read, :kind => 'text', :i18n_variable_id => var_13.id )
|
||||
home.page_parts.create!( :name => 'content_1', :content => File.open("#{Rails.root}/lib/template/home.page").read, :kind => 'text', :i18n_variable_id => var_13.id )
|
||||
|
||||
end
|
||||
|
||||
|
||||
Reference in new issue
Block a user