summaryrefslogtreecommitdiff
path: root/app/helpers
diff options
context:
space:
mode:
authorhukl <contact@smyck.org>2009-08-15 22:29:57 +0200
committerhukl <contact@smyck.org>2009-08-15 22:29:57 +0200
commitb8717e4fe005a8df13a4983943184881f87d97be (patch)
treea67620b7da0def661ae00571593def8bad4fc7c8 /app/helpers
parentb826671766f2831439b5441683dd9019062bb4bd (diff)
added pagination for aggregators. costed me the whole day. crappy plugins ARGH! More work to do!
Diffstat (limited to 'app/helpers')
-rw-r--r--app/helpers/content_helper.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/app/helpers/content_helper.rb b/app/helpers/content_helper.rb
index 5f6143b..6309c8b 100644
--- a/app/helpers/content_helper.rb
+++ b/app/helpers/content_helper.rb
@@ -77,9 +77,11 @@ module ContentHelper
77 # Takes the parameters from the aggregate? method and renders the collection 77 # Takes the parameters from the aggregate? method and renders the collection
78 # from Page.aggregate(options) with a given partial 78 # from Page.aggregate(options) with a given partial
79 def render_collection options 79 def render_collection options
80 @content_collection = Page.aggregate(options, params[:page])
81
80 render( 82 render(
81 :partial => options[:partial], 83 :partial => options[:partial],
82 :collection => Page.aggregate(options), 84 :collection => @content_collection,
83 :as => :page 85 :as => :page
84 ) 86 )
85 end 87 end