Restrict News/Articles/Books panes to 10 entries each.
authorMike Taylor <mike@indexdata.com>
Mon, 9 Jun 2014 14:36:05 +0000 (15:36 +0100)
committerMike Taylor <mike@indexdata.com>
Mon, 9 Jun 2014 14:36:05 +0000 (15:36 +0100)
examples/htdocs/mkws-widget-credo-bs.js

index d3f363e..6f89760 100644 (file)
@@ -60,11 +60,11 @@ mkws.registerWidgetType('Credo', function() {
 
   s.push('<div class="row clearfix">');
   s.push(section('entries clearfix col-md-4 col-sm-6', 'News',
-                    this.subwidget('Records', { _team: 'news', targetfilter: 'categories=news' })));
+                 this.subwidget('Records', { _team: 'news', targetfilter: 'categories=news', perpage: 10 })));
   s.push(section('articles clearfix col-md-4 col-sm-6', 'Articles',
-                    this.subwidget('Records', { _team: 'articles', targetfilter: 'categories=articles' })));
+                    this.subwidget('Records', { _team: 'articles', targetfilter: 'categories=articles', perpage: 10 })));
   s.push(section('books clearfix col-md-4 col-sm-6', 'Books',
-                    this.subwidget('Records', { _team: 'books', targetfilter: 'categories=books' })));
+                    this.subwidget('Records', { _team: 'books', targetfilter: 'categories=books', perpage: 10 })));
   s.push(section('news col-md-4 col-sm-6', 'Results from all targets',
                     this.subwidget('Records', { _team: 'main' })));
   s.push('</div>');