{"id":829,"date":"2014-07-18T17:23:52","date_gmt":"2014-07-18T17:23:52","guid":{"rendered":"http:\/\/www.myfatblog.co.uk\/?p=829"},"modified":"2014-08-10T07:54:50","modified_gmt":"2014-08-10T07:54:50","slug":"jslink-display-templates-external-data","status":"publish","type":"post","link":"http:\/\/www.myfatblog.co.uk\/index.php\/2014\/07\/jslink-display-templates-external-data\/","title":{"rendered":"JSLink Display Templates and External Data"},"content":{"rendered":"<p>One of the questions raised during my recent session at SUGUK Cambridge, was whether or not JSLink could be used to style External List Data. I certainly couldn\u2019t see a reason why not as the External Data Column allows you to surface data within a standard SharePoint list, but I couldn\u2019t be sure without testing.<\/p>\n<p>For this scenario, I\u2019ve created a very simple database in the SQL instance connected to my Demo rig. This database contains a table named Factory Sensors, with the following columns:-<\/p>\n<p><a href=\"http:\/\/www.myfatblog.co.uk\/images\/BlogImages\/JSLink-Display-Templates-and-External-Da_F812\/SNAGHTML1e2ddab.png\"><img loading=\"lazy\" decoding=\"async\" style=\"margin: 5px auto; border: 0px currentcolor; float: none; display: block; background-image: none;\" title=\"SNAGHTML1e2ddab\" src=\"http:\/\/www.myfatblog.co.uk\/images\/BlogImages\/JSLink-Display-Templates-and-External-Da_F812\/SNAGHTML1e2ddab_thumb.png\" alt=\"SNAGHTML1e2ddab\" width=\"354\" height=\"255\" border=\"0\" \/><\/a><\/p>\n<p>This is meant to simulate the type of real-time information you might see in an industrial application, in this case the shelling and roasting of coffee beans on an assembly line. I\u2019ve created two rows in this database to represent the two assembly lines in our factory.<\/p>\n<p><a href=\"http:\/\/www.myfatblog.co.uk\/images\/BlogImages\/JSLink-Display-Templates-and-External-Da_F812\/SNAGHTML1e53b83.png\"><img loading=\"lazy\" decoding=\"async\" style=\"margin: 5px auto; border: 0px currentcolor; float: none; display: block; background-image: none;\" title=\"SNAGHTML1e53b83\" src=\"http:\/\/www.myfatblog.co.uk\/images\/BlogImages\/JSLink-Display-Templates-and-External-Da_F812\/SNAGHTML1e53b83_thumb.png\" alt=\"SNAGHTML1e53b83\" width=\"440\" height=\"154\" border=\"0\" \/><\/a><\/p>\n<p>I\u2019ve created a windows login that has read only rights to the database and created an entry in the Secure Store to allow me to connect using a Group ID.<\/p>\n<p><a href=\"http:\/\/www.myfatblog.co.uk\/images\/BlogImages\/JSLink-Display-Templates-and-External-Da_F812\/SNAGHTML1e6d85e.png\"><img loading=\"lazy\" decoding=\"async\" style=\"margin: 5px auto; border: 0px currentcolor; float: none; display: block; background-image: none;\" title=\"SNAGHTML1e6d85e\" src=\"http:\/\/www.myfatblog.co.uk\/images\/BlogImages\/JSLink-Display-Templates-and-External-Da_F812\/SNAGHTML1e6d85e_thumb.png\" alt=\"SNAGHTML1e6d85e\" width=\"371\" height=\"294\" border=\"0\" \/><\/a><\/p>\n<p>I\u2019ve then used the Secure Store entry to create an external content type that accesses the SQL database to retrieve the data.<\/p>\n<p><a href=\"http:\/\/www.myfatblog.co.uk\/images\/BlogImages\/JSLink-Display-Templates-and-External-Da_F812\/SNAGHTML1e9e99c.png\"><img loading=\"lazy\" decoding=\"async\" style=\"margin: 5px auto; border: 0px currentcolor; float: none; display: block; background-image: none;\" title=\"SNAGHTML1e9e99c\" src=\"http:\/\/www.myfatblog.co.uk\/images\/BlogImages\/JSLink-Display-Templates-and-External-Da_F812\/SNAGHTML1e9e99c_thumb.png\" alt=\"SNAGHTML1e9e99c\" width=\"544\" height=\"329\" border=\"0\" \/><\/a><\/p>\n<p>[important]I\u2019m not going to go through the steps here to create an external content type in SharePoint Designer as there are lots of blog posts out there that go into some depth about it. Suffice to say, it should only take you about 5 minutes![\/important]<\/p>\n<p>Once the External Content type is created, we can go and start building out a list to use it. We\u2019ll create a custom list named Coffee Sensors, with just a title field, and a single column based on the<strong><em> External Data<\/em><\/strong> field type.<\/p>\n<p>Use the External Content type picker to choose your external content type, then choose the Field to be displayed. I\u2019ve chosen the SensorArrayName field from the database and I\u2019ve also selected the other fields to be displayed alongside. This ensures that we can see the actual values from our sensors.<\/p>\n<p><a href=\"http:\/\/www.myfatblog.co.uk\/images\/BlogImages\/JSLink-Display-Templates-and-External-Da_F812\/SNAGHTML1edcc0f.png\"><img loading=\"lazy\" decoding=\"async\" style=\"margin: 5px; border: 0px currentcolor; display: inline; background-image: none;\" title=\"SNAGHTML1edcc0f\" src=\"http:\/\/www.myfatblog.co.uk\/images\/BlogImages\/JSLink-Display-Templates-and-External-Da_F812\/SNAGHTML1edcc0f_thumb.png\" alt=\"SNAGHTML1edcc0f\" width=\"574\" height=\"284\" border=\"0\" \/><\/a><\/p>\n<p>Once you click ok and return to the list, we can create two list items to represent the assembly lines from our scenario. using the BDC Picker to choose the correct database item.<\/p>\n<p><a href=\"http:\/\/www.myfatblog.co.uk\/images\/BlogImages\/JSLink-Display-Templates-and-External-Da_F812\/SNAGHTML1f1c886.png\"><img loading=\"lazy\" decoding=\"async\" style=\"margin: 5px auto; border: 0px currentcolor; float: none; display: block; background-image: none;\" title=\"SNAGHTML1f1c886\" src=\"http:\/\/www.myfatblog.co.uk\/images\/BlogImages\/JSLink-Display-Templates-and-External-Da_F812\/SNAGHTML1f1c886_thumb.png\" alt=\"SNAGHTML1f1c886\" width=\"486\" height=\"168\" border=\"0\" \/><\/a><\/p>\n<p>With our two items created, you can now see the additional data pulled through from the database. You\u2019ll also notice that the display names are a concatenation of the first field from the database, and then the secondary field name. This is quite important as you\u2019ll see when we get into the display template itself.<\/p>\n<p><a href=\"http:\/\/www.myfatblog.co.uk\/images\/BlogImages\/JSLink-Display-Templates-and-External-Da_F812\/SNAGHTML1f3c52c.png\"><img loading=\"lazy\" decoding=\"async\" style=\"margin: 5px; border: 0px currentcolor; display: inline; background-image: none;\" title=\"SNAGHTML1f3c52c\" src=\"http:\/\/www.myfatblog.co.uk\/images\/BlogImages\/JSLink-Display-Templates-and-External-Da_F812\/SNAGHTML1f3c52c_thumb.png\" alt=\"SNAGHTML1f3c52c\" width=\"569\" height=\"180\" border=\"0\" \/><\/a><\/p>\n<h2>Creating the Display Template<\/h2>\n<p>The actual display template for this is no different than any of the display templates that you\u2019ve seen me create and demonstrate many times if you\u2019ve been following my blog for sometime (<a title=\"SPCSR\" href=\"https;\/\/github.com\/spcsr\">The templates for which are available here\u00a0in SPCSR<\/a>..). The key difference is how SharePoint encodes the column names for those additional fields.<\/p>\n<p>If we take a look at the context object for one of the items, you can see that the internal field names have been created as encoded versions of their display name.<\/p>\n<p><a href=\"http:\/\/www.myfatblog.co.uk\/images\/BlogImages\/JSLink-Display-Templates-and-External-Da_F812\/SNAGHTML1f7bddc.png\"><img loading=\"lazy\" decoding=\"async\" style=\"margin: 5px; border: 0px currentcolor; display: inline; background-image: none;\" title=\"SNAGHTML1f7bddc\" src=\"http:\/\/www.myfatblog.co.uk\/images\/BlogImages\/JSLink-Display-Templates-and-External-Da_F812\/SNAGHTML1f7bddc_thumb.png\" alt=\"SNAGHTML1f7bddc\" width=\"518\" height=\"251\" border=\"0\" \/><\/a><\/p>\n<p>The name comes from the encoding applied to \u201cSensorArray: RoastingOutput\u201d which thanks to the way that SharePoint encodes internal names means we only have a small portion of the actual identifier to play with. Luckily in this instance that\u2019s enough to not create internal name pain!<\/p>\n<p>You\u2019ll also notice that there are two of them, with the first one showing a string representation of the display value, and the second displaying an actual value that can be parsed in JavaScript. these can then be used in a simple custom item rendering template to display an entry for each one.<\/p>\n<div id=\"scid:C89E2BDB-ADD3-4f7a-9810-1B7EACF446C1:1463b558-a214-4f4d-bdf4-c361a7727e59\" class=\"wlWriterEditableSmartContent\" style=\"margin: 0px; padding: 0px; float: none; display: inline;\">\n<pre class=\"brush: jscript; pad-line-numbers: true; title: ; wrap-lines: true; notranslate\" title=\"\">\r\npfh.CustomItem = function (ctx) {\r\n \u00a0\u00a0\u00a0 var outputString = &quot;&lt;div class='factoryArrayWrapper'&gt;&lt;div class='factoryArrayName'&gt;&quot; + ctx.CurrentItem.Title + &quot;&lt;\/div&gt;&quot;;\r\n\u00a0\u00a0\u00a0 outputString += &quot;&lt;div class='factorySensor'&gt;&lt;span class='factorySensorHeader'&gt;Roasting Output: &lt;\/span&gt;&lt;span&gt;&quot;\r\n\u00a0\u00a0\u00a0 outputString += ctx.CurrentItem.SensorArray_x003a__x0020_Roastin +&quot;&lt;\/span&gt;&lt;\/div&gt;&lt;div id='HCContainerA&quot; + ctx.CurrentItemIdx + &quot;' &gt;&lt;\/div&gt;&quot;;\r\n\u00a0\u00a0\u00a0 outputString += &quot;&lt;div class='factorySensor'&gt;&lt;span class='factorySensorHeader'&gt;Shelling Output: &lt;\/span&gt;&lt;span&gt;&quot;\r\n\u00a0\u00a0\u00a0 outputString += ctx.CurrentItem.SensorArray_x003a__x0020_Shellin +&quot;&lt;\/span&gt;&lt;\/div&gt;&lt;div id='HCContainerB&quot; + ctx.CurrentItemIdx + &quot;' &gt;&lt;\/div&gt;&quot;;\r\n\u00a0\u00a0\u00a0 outputString += &quot;&lt;\/div&gt;&quot;;\r\n\u00a0\u00a0\u00a0 return outputString;\r\n}\r\n<\/pre>\n<\/div>\n<p>Which results in the output shown here with some very basic CSS to style it:-<\/p>\n<p><a href=\"http:\/\/www.myfatblog.co.uk\/images\/BlogImages\/JSLink-Display-Templates-and-External-Da_F812\/image.png\"><img loading=\"lazy\" decoding=\"async\" style=\"margin: 5px auto; border: 0px currentcolor; float: none; display: block; background-image: none;\" title=\"image\" src=\"http:\/\/www.myfatblog.co.uk\/images\/BlogImages\/JSLink-Display-Templates-and-External-Da_F812\/image_thumb.png\" alt=\"image\" width=\"346\" height=\"317\" border=\"0\" \/><\/a><\/p>\n<h2><\/h2>\n<h2>Next Steps<\/h2>\n<p>That\u2019s a fairly simple example of using JSLink to style data being brought into SharePoint from an external LOB system. What I\u2019m planning to do in a future post is to use High Charts to then surface this data in the form of a gauge. The idea is to present this data in a much more visually appealing form that can immediately tell a story about the state of the assembly line to someone looking quickly at the screen.<\/p>\n<p>Paul.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>One of the questions raised during my recent session at SUGUK Cambridge, was whether or not JSLink could be used to style External List Data. I certainly couldn\u2019t see a reason why not as the External Data Column allows you to surface data within a standard SharePoint list, but I couldn\u2019t be sure without testing. &hellip; <\/p>\n<p><a class=\"more-link btn\" href=\"http:\/\/www.myfatblog.co.uk\/index.php\/2014\/07\/jslink-display-templates-external-data\/\">Continue reading<\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_exactmetrics_skip_tracking":false,"footnotes":""},"categories":[138,89,132,96,104,87,70,103,60,8],"tags":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v22.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Using JSLink Display Templates and External Data Columns<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"http:\/\/www.myfatblog.co.uk\/index.php\/2014\/07\/jslink-display-templates-external-data\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Using JSLink Display Templates and External Data Columns\" \/>\n<meta property=\"og:description\" content=\"One of the questions raised during my recent session at SUGUK Cambridge, was whether or not JSLink could be used to style External List Data. I certainly couldn\u2019t see a reason why not as the External Data Column allows you to surface data within a standard SharePoint list, but I couldn\u2019t be sure without testing. &hellip; Continue reading\" \/>\n<meta property=\"og:url\" content=\"http:\/\/www.myfatblog.co.uk\/index.php\/2014\/07\/jslink-display-templates-external-data\/\" \/>\n<meta property=\"og:site_name\" content=\"Blog of an overweight SharePoint addict\" \/>\n<meta property=\"article:published_time\" content=\"2014-07-18T17:23:52+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2014-08-10T07:54:50+00:00\" \/>\n<meta property=\"og:image\" content=\"http:\/\/www.myfatblog.co.uk\/images\/BlogImages\/JSLink-Display-Templates-and-External-Da_F812\/SNAGHTML1e2ddab_thumb.png\" \/>\n<meta name=\"author\" content=\"Cimares\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@cimares\" \/>\n<meta name=\"twitter:site\" content=\"@cimares\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Cimares\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"http:\/\/www.myfatblog.co.uk\/index.php\/2014\/07\/jslink-display-templates-external-data\/\",\"url\":\"http:\/\/www.myfatblog.co.uk\/index.php\/2014\/07\/jslink-display-templates-external-data\/\",\"name\":\"Using JSLink Display Templates and External Data Columns\",\"isPartOf\":{\"@id\":\"http:\/\/www.myfatblog.co.uk\/#website\"},\"primaryImageOfPage\":{\"@id\":\"http:\/\/www.myfatblog.co.uk\/index.php\/2014\/07\/jslink-display-templates-external-data\/#primaryimage\"},\"image\":{\"@id\":\"http:\/\/www.myfatblog.co.uk\/index.php\/2014\/07\/jslink-display-templates-external-data\/#primaryimage\"},\"thumbnailUrl\":\"http:\/\/www.myfatblog.co.uk\/images\/BlogImages\/JSLink-Display-Templates-and-External-Da_F812\/SNAGHTML1e2ddab_thumb.png\",\"datePublished\":\"2014-07-18T17:23:52+00:00\",\"dateModified\":\"2014-08-10T07:54:50+00:00\",\"author\":{\"@id\":\"http:\/\/www.myfatblog.co.uk\/#\/schema\/person\/55ae8f6885bb5b8390dad001f3da83c6\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"http:\/\/www.myfatblog.co.uk\/index.php\/2014\/07\/jslink-display-templates-external-data\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"http:\/\/www.myfatblog.co.uk\/index.php\/2014\/07\/jslink-display-templates-external-data\/#primaryimage\",\"url\":\"http:\/\/www.myfatblog.co.uk\/images\/BlogImages\/JSLink-Display-Templates-and-External-Da_F812\/SNAGHTML1e2ddab_thumb.png\",\"contentUrl\":\"http:\/\/www.myfatblog.co.uk\/images\/BlogImages\/JSLink-Display-Templates-and-External-Da_F812\/SNAGHTML1e2ddab_thumb.png\"},{\"@type\":\"WebSite\",\"@id\":\"http:\/\/www.myfatblog.co.uk\/#website\",\"url\":\"http:\/\/www.myfatblog.co.uk\/\",\"name\":\"Blog of an overweight SharePoint addict\",\"description\":\"The rantings of a (not so) food obsessed IT consultant!\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"http:\/\/www.myfatblog.co.uk\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"http:\/\/www.myfatblog.co.uk\/#\/schema\/person\/55ae8f6885bb5b8390dad001f3da83c6\",\"name\":\"Cimares\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"http:\/\/www.myfatblog.co.uk\/#\/schema\/person\/image\/\",\"url\":\"http:\/\/www.myfatblog.co.uk\/images\/BlogImages\/About_D057\/TopOfTheWorld.jpg\",\"contentUrl\":\"http:\/\/www.myfatblog.co.uk\/images\/BlogImages\/About_D057\/TopOfTheWorld.jpg\",\"caption\":\"Cimares\"},\"sameAs\":[\"http:\/\/www.myfatblog.co.uk\"],\"url\":\"http:\/\/www.myfatblog.co.uk\/index.php\/author\/reginald\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Using JSLink Display Templates and External Data Columns","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"http:\/\/www.myfatblog.co.uk\/index.php\/2014\/07\/jslink-display-templates-external-data\/","og_locale":"en_US","og_type":"article","og_title":"Using JSLink Display Templates and External Data Columns","og_description":"One of the questions raised during my recent session at SUGUK Cambridge, was whether or not JSLink could be used to style External List Data. I certainly couldn\u2019t see a reason why not as the External Data Column allows you to surface data within a standard SharePoint list, but I couldn\u2019t be sure without testing. &hellip; Continue reading","og_url":"http:\/\/www.myfatblog.co.uk\/index.php\/2014\/07\/jslink-display-templates-external-data\/","og_site_name":"Blog of an overweight SharePoint addict","article_published_time":"2014-07-18T17:23:52+00:00","article_modified_time":"2014-08-10T07:54:50+00:00","og_image":[{"url":"http:\/\/www.myfatblog.co.uk\/images\/BlogImages\/JSLink-Display-Templates-and-External-Da_F812\/SNAGHTML1e2ddab_thumb.png"}],"author":"Cimares","twitter_card":"summary_large_image","twitter_creator":"@cimares","twitter_site":"@cimares","twitter_misc":{"Written by":"Cimares","Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"http:\/\/www.myfatblog.co.uk\/index.php\/2014\/07\/jslink-display-templates-external-data\/","url":"http:\/\/www.myfatblog.co.uk\/index.php\/2014\/07\/jslink-display-templates-external-data\/","name":"Using JSLink Display Templates and External Data Columns","isPartOf":{"@id":"http:\/\/www.myfatblog.co.uk\/#website"},"primaryImageOfPage":{"@id":"http:\/\/www.myfatblog.co.uk\/index.php\/2014\/07\/jslink-display-templates-external-data\/#primaryimage"},"image":{"@id":"http:\/\/www.myfatblog.co.uk\/index.php\/2014\/07\/jslink-display-templates-external-data\/#primaryimage"},"thumbnailUrl":"http:\/\/www.myfatblog.co.uk\/images\/BlogImages\/JSLink-Display-Templates-and-External-Da_F812\/SNAGHTML1e2ddab_thumb.png","datePublished":"2014-07-18T17:23:52+00:00","dateModified":"2014-08-10T07:54:50+00:00","author":{"@id":"http:\/\/www.myfatblog.co.uk\/#\/schema\/person\/55ae8f6885bb5b8390dad001f3da83c6"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["http:\/\/www.myfatblog.co.uk\/index.php\/2014\/07\/jslink-display-templates-external-data\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"http:\/\/www.myfatblog.co.uk\/index.php\/2014\/07\/jslink-display-templates-external-data\/#primaryimage","url":"http:\/\/www.myfatblog.co.uk\/images\/BlogImages\/JSLink-Display-Templates-and-External-Da_F812\/SNAGHTML1e2ddab_thumb.png","contentUrl":"http:\/\/www.myfatblog.co.uk\/images\/BlogImages\/JSLink-Display-Templates-and-External-Da_F812\/SNAGHTML1e2ddab_thumb.png"},{"@type":"WebSite","@id":"http:\/\/www.myfatblog.co.uk\/#website","url":"http:\/\/www.myfatblog.co.uk\/","name":"Blog of an overweight SharePoint addict","description":"The rantings of a (not so) food obsessed IT consultant!","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"http:\/\/www.myfatblog.co.uk\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Person","@id":"http:\/\/www.myfatblog.co.uk\/#\/schema\/person\/55ae8f6885bb5b8390dad001f3da83c6","name":"Cimares","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"http:\/\/www.myfatblog.co.uk\/#\/schema\/person\/image\/","url":"http:\/\/www.myfatblog.co.uk\/images\/BlogImages\/About_D057\/TopOfTheWorld.jpg","contentUrl":"http:\/\/www.myfatblog.co.uk\/images\/BlogImages\/About_D057\/TopOfTheWorld.jpg","caption":"Cimares"},"sameAs":["http:\/\/www.myfatblog.co.uk"],"url":"http:\/\/www.myfatblog.co.uk\/index.php\/author\/reginald\/"}]}},"_links":{"self":[{"href":"http:\/\/www.myfatblog.co.uk\/index.php\/wp-json\/wp\/v2\/posts\/829"}],"collection":[{"href":"http:\/\/www.myfatblog.co.uk\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.myfatblog.co.uk\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.myfatblog.co.uk\/index.php\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/www.myfatblog.co.uk\/index.php\/wp-json\/wp\/v2\/comments?post=829"}],"version-history":[{"count":5,"href":"http:\/\/www.myfatblog.co.uk\/index.php\/wp-json\/wp\/v2\/posts\/829\/revisions"}],"predecessor-version":[{"id":840,"href":"http:\/\/www.myfatblog.co.uk\/index.php\/wp-json\/wp\/v2\/posts\/829\/revisions\/840"}],"wp:attachment":[{"href":"http:\/\/www.myfatblog.co.uk\/index.php\/wp-json\/wp\/v2\/media?parent=829"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.myfatblog.co.uk\/index.php\/wp-json\/wp\/v2\/categories?post=829"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.myfatblog.co.uk\/index.php\/wp-json\/wp\/v2\/tags?post=829"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}