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

examples/htdocs/mkws-widget-credo-bs.js

index 6f89760..2c9073f 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>\
 ');
 
@@ -54,7 +54,7 @@ mkws.registerWidgetType('Credo', function() {
   s.push('</div>');
   
   s.push('<div class="row">');
   s.push('</div>');
   
   s.push('<div class="row">');
-  s.push(section('image col-md-12', 'Images', this.subwidget('GoogleImage', { maxrecs: 4, template: 'CredoImage' })));
+  s.push(section('image col-md-12', 'Images', this.subwidget('GoogleImage', { maxrecs: 4, template: 'CredoImage', target: 'google_images_js' })));
   s.push('</div>');
   
 
   s.push('</div>');