Place the encyclodaedia and image widgets in different teams.
authorMike Taylor <mike@indexdata.com>
Tue, 20 May 2014 16:22:26 +0000 (17:22 +0100)
committerMike Taylor <mike@indexdata.com>
Tue, 20 May 2014 16:22:26 +0000 (17:22 +0100)
examples/htdocs/mkws-widget-credo.js

index 5f689e2..46e9d29 100644 (file)
@@ -14,9 +14,9 @@ mkws.registerWidgetType('Credo', function() {
 
   s.push('<td class="main">');
   s.push(section('encyclopaedia', 'Topic Page: ### title',
-                 this.subwidget('Reference')));
+                 this.subwidget('Reference', { _team: 'ref' })));
   s.push(section('image', 'Images',
-                 this.subwidget('GoogleImage', { maxrecs: 4 })));
+                 this.subwidget('GoogleImage', { _team: 'img', maxrecs: 4 })));
   s.push('</td>');
 
   s.push('<td class="side">');