projects
/
mkws-moved-to-github.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
43c3d6b
)
Restrict News/Articles/Books panes to 10 entries each.
author
Mike Taylor
<mike@indexdata.com>
Mon, 9 Jun 2014 14:36:05 +0000
(15:36 +0100)
committer
Mike Taylor
<mike@indexdata.com>
Mon, 9 Jun 2014 14:36:05 +0000
(15:36 +0100)
examples/htdocs/mkws-widget-credo-bs.js
patch
|
blob
|
history
diff --git
a/examples/htdocs/mkws-widget-credo-bs.js
b/examples/htdocs/mkws-widget-credo-bs.js
index
d3f363e
..
6f89760
100644
(file)
--- a/
examples/htdocs/mkws-widget-credo-bs.js
+++ b/
examples/htdocs/mkws-widget-credo-bs.js
@@
-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',
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',
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',
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>');
s.push(section('news col-md-4 col-sm-6', 'Results from all targets',
this.subwidget('Records', { _team: 'main' })));
s.push('</div>');