X-Git-Url: http://sru.miketaylor.org.uk/?a=blobdiff_plain;f=examples%2Fhtdocs%2Fmkws-widget-credo.js;h=d50f2c391359376f62422591c4250843b322de14;hb=9045729b4190279596c3078be3d1fd0df7aa7048;hp=d6ba4e7802a873f972c5ce685ab4aa4b730e4ccc;hpb=0d29b3dc90ffb83ce2f8ee265f288bdb409af45c;p=mkws-moved-to-github.git diff --git a/examples/htdocs/mkws-widget-credo.js b/examples/htdocs/mkws-widget-credo.js index d6ba4e7..d50f2c3 100644 --- a/examples/htdocs/mkws-widget-credo.js +++ b/examples/htdocs/mkws-widget-credo.js @@ -9,7 +9,7 @@ mkws.registerWidgetType('Credo', function() { this.team.registerTemplate('CredoImage', '\
\ - \ + \ {{#mkws-first md-thumburl}}\ {{../md-title}}\ {{/mkws-first}}\ @@ -35,15 +35,15 @@ mkws.registerWidgetType('Credo', function() { s.push(''); s.push(section('mindmap', 'Create a Mind Map for ### title', - '### Is there a way to make a mind-map?')); + this.subwidget('Mindmap', { _team: 'main', facet: 'subject' }))); s.push(section('topics', 'Related Topics', - 1 || this.subwidget('Facet', { facet: 'subject' }))); + this.subwidget('Facet', { _team: 'main', facet: 'subject' }))); s.push(''); s.push(''); s.push(sectionRow('entries', 'Credo Entries', - 1 || this.subwidget('Records', { /* ### config */ }))); + this.subwidget('Records', { _team: 'main' }))); s.push(sectionRow('articles', 'Articles', 1 || this.subwidget('Records', { /* ### config */ }))); s.push(sectionRow('books', 'Books', @@ -77,3 +77,8 @@ mkws.registerWidgetType('Credo', function() { return s.join(''); } }); + + +mkws.registerWidgetType('Mindmap', function() { + this.node.html("### We do not yet have a Mindmap widget"); +});