Permalink
Browse files

Make page parts customizable for the home page.

  • Loading branch information...
1 parent bbb8cbd commit f621f72503dee9bfdb282c22c16d42b6f694b083 @wjbuys wjbuys committed Mar 21, 2012
Showing with 9 additions and 19 deletions.
  1. +8 −13 app/views/refinery/pages/home.slim
  2. +1 −6 config/initializers/refinery/pages.rb
View
21 app/views/refinery/pages/home.slim
@@ -1,21 +1,16 @@
.hero-unit
- h1 Cape Town Youth Choir
+ = @page.content_for(:banner)
.row
.span12
ul.thumbnails
li.span4
- a.thumbnail href="#"
- img src="http://placehold.it/320x200"
- h3 The Choir
- p who are we and what are we about
+ = @page.content_for(:left)
li.span4
- a.thumbnail href="#"
- img src="http://placehold.it/320x200"
- h3 The Conductor
- p who are we and what are we about
+ = @page.content_for(:middle)
li.span4
- a.thumbnail href="#"
- img src="http://placehold.it/320x200"
- h3 Upcoming Concerts
- p who are we and what are we about
+ = @page.content_for(:right)
+
+.row
+ .span12
+ = @page.content_for(:body)
View
7 config/initializers/refinery/pages.rb
@@ -1,14 +1,9 @@
Refinery::Pages.configure do |config|
- # Configure specific page templates
- # config.types.register :home do |home|
- # home.parts = %w[intro body]
- # end
-
# Configure global page default parts
# config.default_parts = ["Body", "Side Body"]
# Configure whether to allow adding new page parts
- # config.new_page_parts = false
+ config.new_page_parts = true
# Configure whether to enable marketable_urls
# config.marketable_urls = true

0 comments on commit f621f72

Please sign in to comment.