Use new google_images_js connector for images -- see CONN-270.
authorMike Taylor <mike@indexdata.com>
Mon, 9 Jun 2014 15:05:40 +0000 (16:05 +0100)
committerMike Taylor <mike@indexdata.com>
Mon, 9 Jun 2014 15:05:40 +0000 (16:05 +0100)
md-title is rendered without HTML quoting, so entites work.

examples/htdocs/mkws-widget-credo.js

index 2297205..8617724 100644 (file)
@@ -32,7 +32,7 @@ mkws.registerWidgetType('Credo', function() {
         {{/mkws-first}}\
        <br/>\
        </a>\
         {{/mkws-first}}\
        <br/>\
        </a>\
-       <p>{{md-title}}</p>\
+       <p>{{{md-title}}}</p>\
       </div>\
 ');
 
       </div>\
 ');
 
@@ -47,7 +47,7 @@ mkws.registerWidgetType('Credo', function() {
                  this.subwidget('Reference', { _team: 'ref', paragraphs: 1 })));
   // The Images widget needs to be in our team so we can set its template
   s.push(section('image', 'Images',
                  this.subwidget('Reference', { _team: 'ref', paragraphs: 1 })));
   // The Images widget needs to be in our team so we can set its template
   s.push(section('image', 'Images',
-                 this.subwidget('GoogleImage', { maxrecs: 4, template: 'CredoImage' })));
+                 this.subwidget('GoogleImage', { maxrecs: 4, template: 'CredoImage', target: 'google_images_js' })));
   s.push('</td>');
 
   s.push('<td class="side">');
   s.push('</td>');
 
   s.push('<td class="side">');