Browse files

Merge pull request #2 from masche842/master

Step by step to a better documentation...
  • Loading branch information...
2 parents 697cb81 + 516dade commit f16bb039392c0ac1f053cb81e915a1ef9e344365 @tvdeyen tvdeyen committed Apr 24, 2012
Showing with 15 additions and 1 deletion.
  1. +14 −0 source/cells.textile
  2. +1 −1 source/deploy_on_railshoster.textile
14 source/cells.textile
@@ -8,15 +8,29 @@ Cells are sections on a page and are acting as containers for elements.
Cells are defined here: <code>/config/alchemy/cells.yml</code>
+You also have to define the cells to use in your <code>/config/alchemy/page_layouts.yml</code>
+Please be aware: You can only add elements that are both defined in your cells.yml and page_layouts.yml!
- name: left_column
elements: [image, text]
+- name: standard
+ cells: left_column
+ elements: [image, text]
Normally cells are rendered on page_layouts. They can be called with this helper method:
<%= render_cell(:cellname) %>
+If you render cells like this, an additional view-partial is rendered, naming scheme is <code>/app/views/alchemy/cells/_left_column.html.erb</code>
+In this partial use <code><%= render_elements :from_cell => 'left_column' %></code> to render cell-related elements only.
2 source/deploy_on_railshoster.textile
@@ -3,7 +3,7 @@ h2. Railshoster Alchemy deployment
"RailsHoster": offers durable rails hosting for good money. In this guide you will learn how to deploy your Alchemy Site on your RailsHoster server. Please be sure that you have read the "Getting Started Guide":/getting_started to be familar with the Alchemy installation steps. After finishing this guide you will know:
* How to initialize your local Alchemy installation so it is ready to be deployed on RailsHoster
-* How to deploy changes your made to your server
+* How to deploy changes you've made to your server

0 comments on commit f16bb03

Please sign in to comment.