{"id":1031,"date":"2012-06-14T17:24:21","date_gmt":"2012-06-14T16:24:21","guid":{"rendered":"http:\/\/www.stuartroberts.net\/?p=1031"},"modified":"2012-06-14T17:24:21","modified_gmt":"2012-06-14T16:24:21","slug":"spd-webpart-definition-code","status":"publish","type":"post","link":"http:\/\/www.stuartroberts.net\/index.php\/2012\/06\/14\/spd-webpart-definition-code\/","title":{"rendered":"SPD WebPart Definition Code"},"content":{"rendered":"<p>Using SharePoint Designer, users can update WebPart properties directly via the <em>code<\/em> pane.  Now, if this is a requirement for you, you&#8217;ll notice that when editing a custom version three WebPart (<a href=\"http:\/\/msdn.microsoft.com\/en-us\/library\/system.web.ui.webcontrols.webparts.webpart(v=vs.90).aspx\" title=\"System.Web.UI.WebControls.WebParts.WebPart\" target=\"_blank\">System.Web.UI.WebControls.WebParts.WebPart<\/a>) that the properties are displayed as attributes of the WebPart element:<\/p>\n<pre lang=\"XML\">\r\n<WebPart:Test_WebPart runat=\"server\" CustomProperty=\"custom value\"><\/WebPart:Test_WebPart>\r\n<\/pre>\n<p>I&#8217;ve trimmed the above to make it more readable, the real element would be far longer and all on one line.<\/p>\n<p>To make it easier for users to update properties via SPD and to move the properties to their own child elements, one option available is to make a few changes to your WebPart.<\/p>\n<ul>\n<li>Change the WebPart to inherit from the version 2 class &#8211; <a href=\"http:\/\/msdn.microsoft.com\/en-us\/library\/microsoft.sharepoint.webpartpages.webpart.aspx\" title=\"Microsoft.SharePoint.WebPartPages.WebPart\" target=\"_blank\">Microsoft.SharePoint.WebPartPages.WebPart<\/a><\/li>\n<li>Add the <em>SupportsAttributeMarkup(false)<\/em> attribute to the WebPart class<\/li>\n<li>For the property you want displayed as a child element, ensure the property attribute used for storage is <em>WebPartStorage(Storage.Shared)<\/em> and not <em>Personalizable(PersonalizationScope.Shared)<\/em>.  The storage type used is not important.<\/li>\n<\/ul>\n<p>For example:<br \/>\n<!--more--><\/p>\n<pre lang=\"csharp\">\r\n[SupportsAttributeMarkup(false)]\r\npublic class TestWebPart : Microsoft.SharePoint.WebPartPages.WebPart\r\n{\r\n    [WebPartStorage(Storage.Shared)]\r\n    public string TestProperty\r\n    { get; set; }\r\n}\r\n<\/pre>\n<p>This will give something like the following:<br \/>\n<a href=\"http:\/\/www.stuartroberts.net\/wp-content\/uploads\/2012\/06\/SPD.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/www.stuartroberts.net\/wp-content\/uploads\/2012\/06\/SPD.jpg\" alt=\"\" title=\"SPD Code Pane\" width=\"1286\" height=\"495\" class=\"aligncenter size-full wp-image-1033\" srcset=\"http:\/\/www.stuartroberts.net\/wp-content\/uploads\/2012\/06\/SPD.jpg 1286w, http:\/\/www.stuartroberts.net\/wp-content\/uploads\/2012\/06\/SPD-300x115.jpg 300w, http:\/\/www.stuartroberts.net\/wp-content\/uploads\/2012\/06\/SPD-1024x394.jpg 1024w\" sizes=\"auto, (max-width: 1286px) 100vw, 1286px\" \/><\/a><\/p>\n<p>If you don&#8217;t want to, or can&#8217;t change to the version two WebPart, a better solution would be to decorate your WebPart property with the <em>PersistenceMode(PersistenceMode.InnerProperty)<\/em> attribute.  This will render the property as a child element of the WebPart, without the need to follow the steps described above.<\/p>\n<pre lang=\"csharp\">\r\n[SupportsAttributeMarkup(true), ParseChildren(true),]\r\npublic class TestWebPart : System.Web.UI.WebControls.WebParts.WebPart\r\n{\r\n    [Personalizable(PersonalizationScope.Shared),\r\n     PersistenceMode(PersistenceMode.InnerProperty)]\r\n    public string TestProperty\r\n    { get; set; }\r\n}\r\n<\/pre>\n<p>The added bonus of this method is that if, for instance, your property was created to store HTML, when editing the property value in SharePoint Designer&#8217;s code pane, IntelliSense will be provided, which is rather neat.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Using SharePoint Designer, users can update WebPart properties directly via the code pane. Now, if this is a requirement for you, you&#8217;ll notice that when editing a custom version three WebPart (System.Web.UI.WebControls.WebParts.WebPart) that the properties are displayed as attributes of &hellip; <a href=\"http:\/\/www.stuartroberts.net\/index.php\/2012\/06\/14\/spd-webpart-definition-code\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"footnotes":""},"categories":[50,3],"tags":[81,11],"class_list":["post-1031","post","type-post","status-publish","format-standard","hentry","category-designer","category-sharepoint","tag-sharepoint","tag-sharepoint-designer"],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 5.0.3 - aioseo.com -->\n\t<meta name=\"description\" content=\"Controlling the formatting of WebPart properties when edited in the code pane of SharePoint Designer\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<meta name=\"author\" content=\"Stu\"\/>\n\t<meta name=\"keywords\" content=\"sharepoint,sps,sp,designer,webpart,code pane,intellisense\" \/>\n\t<link rel=\"canonical\" href=\"http:\/\/www.stuartroberts.net\/index.php\/2012\/06\/14\/spd-webpart-definition-code\/\" \/>\n\t\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 5.0.3\" \/>\n\t\t<meta property=\"og:locale\" content=\"en_GB\" \/>\n\t\t<meta property=\"og:site_name\" content=\"Stuart Roberts | SharePoint &amp; M365 Development | Practical development guides, solutions and lessons learned across SharePoint, Microsoft 365 and modern development tools\" \/>\n\t\t<meta property=\"og:type\" content=\"article\" \/>\n\t\t<meta property=\"og:title\" content=\"SPD WebPart Definition Code | Stuart Roberts | SharePoint &amp; M365 Development\" \/>\n\t\t<meta property=\"og:description\" content=\"Controlling the formatting of WebPart properties when edited in the code pane of SharePoint Designer\" \/>\n\t\t<meta property=\"og:url\" content=\"http:\/\/www.stuartroberts.net\/index.php\/2012\/06\/14\/spd-webpart-definition-code\/\" \/>\n\t\t<meta property=\"article:published_time\" content=\"2012-06-14T16:24:21+00:00\" \/>\n\t\t<meta property=\"article:modified_time\" content=\"2012-06-14T16:24:21+00:00\" \/>\n\t\t<meta name=\"twitter:card\" content=\"summary\" \/>\n\t\t<meta name=\"twitter:site\" content=\"@SharePointStu\" \/>\n\t\t<meta name=\"twitter:title\" content=\"SPD WebPart Definition Code | Stuart Roberts | SharePoint &amp; M365 Development\" \/>\n\t\t<meta name=\"twitter:description\" content=\"Controlling the formatting of WebPart properties when edited in the code pane of SharePoint Designer\" \/>\n\t\t<meta name=\"twitter:creator\" content=\"@SharePointStu\" \/>\n\t\t<script type=\"application\/ld+json\" class=\"aioseo-schema\">\n\t\t\t{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"http:\\\/\\\/www.stuartroberts.net\\\/index.php\\\/2012\\\/06\\\/14\\\/spd-webpart-definition-code\\\/#article\",\"name\":\"SPD WebPart Definition Code | Stuart Roberts | SharePoint & M365 Development\",\"headline\":\"SPD WebPart Definition Code\",\"author\":{\"@id\":\"http:\\\/\\\/www.stuartroberts.net\\\/index.php\\\/author\\\/admin\\\/#author\"},\"publisher\":{\"@id\":\"http:\\\/\\\/www.stuartroberts.net\\\/#person\"},\"image\":{\"@type\":\"ImageObject\",\"url\":\"http:\\\/\\\/www.stuartroberts.net\\\/wp-content\\\/uploads\\\/2012\\\/06\\\/SPD.jpg\",\"@id\":\"http:\\\/\\\/www.stuartroberts.net\\\/index.php\\\/2012\\\/06\\\/14\\\/spd-webpart-definition-code\\\/#articleImage\",\"width\":1286,\"height\":495},\"datePublished\":\"2012-06-14T17:24:21+01:00\",\"dateModified\":\"2012-06-14T17:24:21+01:00\",\"inLanguage\":\"en-GB\",\"mainEntityOfPage\":{\"@id\":\"http:\\\/\\\/www.stuartroberts.net\\\/index.php\\\/2012\\\/06\\\/14\\\/spd-webpart-definition-code\\\/#webpage\"},\"isPartOf\":{\"@id\":\"http:\\\/\\\/www.stuartroberts.net\\\/index.php\\\/2012\\\/06\\\/14\\\/spd-webpart-definition-code\\\/#webpage\"},\"articleSection\":\"Designer, SharePoint, SharePoint, SharePoint Designer\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"http:\\\/\\\/www.stuartroberts.net\\\/index.php\\\/2012\\\/06\\\/14\\\/spd-webpart-definition-code\\\/#breadcrumblist\",\"itemListElement\":[{\"@type\":\"ListItem\",\"@id\":\"http:\\\/\\\/www.stuartroberts.net\\\/#listItem\",\"position\":1,\"name\":\"Home\",\"item\":\"http:\\\/\\\/www.stuartroberts.net\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"http:\\\/\\\/www.stuartroberts.net\\\/index.php\\\/category\\\/sharepoint\\\/#listItem\",\"name\":\"SharePoint\"}},{\"@type\":\"ListItem\",\"@id\":\"http:\\\/\\\/www.stuartroberts.net\\\/index.php\\\/category\\\/sharepoint\\\/#listItem\",\"position\":2,\"name\":\"SharePoint\",\"item\":\"http:\\\/\\\/www.stuartroberts.net\\\/index.php\\\/category\\\/sharepoint\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"http:\\\/\\\/www.stuartroberts.net\\\/index.php\\\/category\\\/sharepoint\\\/designer\\\/#listItem\",\"name\":\"Designer\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"http:\\\/\\\/www.stuartroberts.net\\\/#listItem\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"@id\":\"http:\\\/\\\/www.stuartroberts.net\\\/index.php\\\/category\\\/sharepoint\\\/designer\\\/#listItem\",\"position\":3,\"name\":\"Designer\",\"item\":\"http:\\\/\\\/www.stuartroberts.net\\\/index.php\\\/category\\\/sharepoint\\\/designer\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"http:\\\/\\\/www.stuartroberts.net\\\/index.php\\\/2012\\\/06\\\/14\\\/spd-webpart-definition-code\\\/#listItem\",\"name\":\"SPD WebPart Definition Code\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"http:\\\/\\\/www.stuartroberts.net\\\/index.php\\\/category\\\/sharepoint\\\/#listItem\",\"name\":\"SharePoint\"}},{\"@type\":\"ListItem\",\"@id\":\"http:\\\/\\\/www.stuartroberts.net\\\/index.php\\\/2012\\\/06\\\/14\\\/spd-webpart-definition-code\\\/#listItem\",\"position\":4,\"name\":\"SPD WebPart Definition Code\",\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"http:\\\/\\\/www.stuartroberts.net\\\/index.php\\\/category\\\/sharepoint\\\/designer\\\/#listItem\",\"name\":\"Designer\"}}]},{\"@type\":\"Person\",\"@id\":\"http:\\\/\\\/www.stuartroberts.net\\\/#person\",\"name\":\"Stu\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"http:\\\/\\\/www.stuartroberts.net\\\/index.php\\\/2012\\\/06\\\/14\\\/spd-webpart-definition-code\\\/#personImage\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/503cb376bab10c66a6bde71d1514dcab2eab4ec44a2f82ef597ca87af61bf1cd?s=96&d=retro&r=g\",\"width\":96,\"height\":96,\"caption\":\"Stu\"}},{\"@type\":\"Person\",\"@id\":\"http:\\\/\\\/www.stuartroberts.net\\\/index.php\\\/author\\\/admin\\\/#author\",\"url\":\"http:\\\/\\\/www.stuartroberts.net\\\/index.php\\\/author\\\/admin\\\/\",\"name\":\"Stu\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"http:\\\/\\\/www.stuartroberts.net\\\/index.php\\\/2012\\\/06\\\/14\\\/spd-webpart-definition-code\\\/#authorImage\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/503cb376bab10c66a6bde71d1514dcab2eab4ec44a2f82ef597ca87af61bf1cd?s=96&d=retro&r=g\",\"width\":96,\"height\":96,\"caption\":\"Stu\"}},{\"@type\":\"WebPage\",\"@id\":\"http:\\\/\\\/www.stuartroberts.net\\\/index.php\\\/2012\\\/06\\\/14\\\/spd-webpart-definition-code\\\/#webpage\",\"url\":\"http:\\\/\\\/www.stuartroberts.net\\\/index.php\\\/2012\\\/06\\\/14\\\/spd-webpart-definition-code\\\/\",\"name\":\"SPD WebPart Definition Code | Stuart Roberts | SharePoint & M365 Development\",\"description\":\"Controlling the formatting of WebPart properties when edited in the code pane of SharePoint Designer\",\"inLanguage\":\"en-GB\",\"isPartOf\":{\"@id\":\"http:\\\/\\\/www.stuartroberts.net\\\/#website\"},\"breadcrumb\":{\"@id\":\"http:\\\/\\\/www.stuartroberts.net\\\/index.php\\\/2012\\\/06\\\/14\\\/spd-webpart-definition-code\\\/#breadcrumblist\"},\"author\":{\"@id\":\"http:\\\/\\\/www.stuartroberts.net\\\/index.php\\\/author\\\/admin\\\/#author\"},\"creator\":{\"@id\":\"http:\\\/\\\/www.stuartroberts.net\\\/index.php\\\/author\\\/admin\\\/#author\"},\"datePublished\":\"2012-06-14T17:24:21+01:00\",\"dateModified\":\"2012-06-14T17:24:21+01:00\"},{\"@type\":\"WebSite\",\"@id\":\"http:\\\/\\\/www.stuartroberts.net\\\/#website\",\"url\":\"http:\\\/\\\/www.stuartroberts.net\\\/\",\"name\":\"Stuart Roberts on all things SharePoint\",\"description\":\"Practical development guides, solutions and lessons learned across SharePoint, Microsoft 365 and modern development tools\",\"inLanguage\":\"en-GB\",\"publisher\":{\"@id\":\"http:\\\/\\\/www.stuartroberts.net\\\/#person\"}}]}\n\t\t<\/script>\n\t\t<!-- All in One SEO -->\n\n","aioseo_head_json":{"title":"SPD WebPart Definition Code | Stuart Roberts | SharePoint & M365 Development","description":"Controlling the formatting of WebPart properties when edited in the code pane of SharePoint Designer","canonical_url":"http:\/\/www.stuartroberts.net\/index.php\/2012\/06\/14\/spd-webpart-definition-code\/","robots":"max-image-preview:large","keywords":"sharepoint,sps,sp,designer,webpart,code pane,intellisense","webmasterTools":{"miscellaneous":""},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"http:\/\/www.stuartroberts.net\/index.php\/2012\/06\/14\/spd-webpart-definition-code\/#article","name":"SPD WebPart Definition Code | Stuart Roberts | SharePoint & M365 Development","headline":"SPD WebPart Definition Code","author":{"@id":"http:\/\/www.stuartroberts.net\/index.php\/author\/admin\/#author"},"publisher":{"@id":"http:\/\/www.stuartroberts.net\/#person"},"image":{"@type":"ImageObject","url":"http:\/\/www.stuartroberts.net\/wp-content\/uploads\/2012\/06\/SPD.jpg","@id":"http:\/\/www.stuartroberts.net\/index.php\/2012\/06\/14\/spd-webpart-definition-code\/#articleImage","width":1286,"height":495},"datePublished":"2012-06-14T17:24:21+01:00","dateModified":"2012-06-14T17:24:21+01:00","inLanguage":"en-GB","mainEntityOfPage":{"@id":"http:\/\/www.stuartroberts.net\/index.php\/2012\/06\/14\/spd-webpart-definition-code\/#webpage"},"isPartOf":{"@id":"http:\/\/www.stuartroberts.net\/index.php\/2012\/06\/14\/spd-webpart-definition-code\/#webpage"},"articleSection":"Designer, SharePoint, SharePoint, SharePoint Designer"},{"@type":"BreadcrumbList","@id":"http:\/\/www.stuartroberts.net\/index.php\/2012\/06\/14\/spd-webpart-definition-code\/#breadcrumblist","itemListElement":[{"@type":"ListItem","@id":"http:\/\/www.stuartroberts.net\/#listItem","position":1,"name":"Home","item":"http:\/\/www.stuartroberts.net\/","nextItem":{"@type":"ListItem","@id":"http:\/\/www.stuartroberts.net\/index.php\/category\/sharepoint\/#listItem","name":"SharePoint"}},{"@type":"ListItem","@id":"http:\/\/www.stuartroberts.net\/index.php\/category\/sharepoint\/#listItem","position":2,"name":"SharePoint","item":"http:\/\/www.stuartroberts.net\/index.php\/category\/sharepoint\/","nextItem":{"@type":"ListItem","@id":"http:\/\/www.stuartroberts.net\/index.php\/category\/sharepoint\/designer\/#listItem","name":"Designer"},"previousItem":{"@type":"ListItem","@id":"http:\/\/www.stuartroberts.net\/#listItem","name":"Home"}},{"@type":"ListItem","@id":"http:\/\/www.stuartroberts.net\/index.php\/category\/sharepoint\/designer\/#listItem","position":3,"name":"Designer","item":"http:\/\/www.stuartroberts.net\/index.php\/category\/sharepoint\/designer\/","nextItem":{"@type":"ListItem","@id":"http:\/\/www.stuartroberts.net\/index.php\/2012\/06\/14\/spd-webpart-definition-code\/#listItem","name":"SPD WebPart Definition Code"},"previousItem":{"@type":"ListItem","@id":"http:\/\/www.stuartroberts.net\/index.php\/category\/sharepoint\/#listItem","name":"SharePoint"}},{"@type":"ListItem","@id":"http:\/\/www.stuartroberts.net\/index.php\/2012\/06\/14\/spd-webpart-definition-code\/#listItem","position":4,"name":"SPD WebPart Definition Code","previousItem":{"@type":"ListItem","@id":"http:\/\/www.stuartroberts.net\/index.php\/category\/sharepoint\/designer\/#listItem","name":"Designer"}}]},{"@type":"Person","@id":"http:\/\/www.stuartroberts.net\/#person","name":"Stu","image":{"@type":"ImageObject","@id":"http:\/\/www.stuartroberts.net\/index.php\/2012\/06\/14\/spd-webpart-definition-code\/#personImage","url":"https:\/\/secure.gravatar.com\/avatar\/503cb376bab10c66a6bde71d1514dcab2eab4ec44a2f82ef597ca87af61bf1cd?s=96&d=retro&r=g","width":96,"height":96,"caption":"Stu"}},{"@type":"Person","@id":"http:\/\/www.stuartroberts.net\/index.php\/author\/admin\/#author","url":"http:\/\/www.stuartroberts.net\/index.php\/author\/admin\/","name":"Stu","image":{"@type":"ImageObject","@id":"http:\/\/www.stuartroberts.net\/index.php\/2012\/06\/14\/spd-webpart-definition-code\/#authorImage","url":"https:\/\/secure.gravatar.com\/avatar\/503cb376bab10c66a6bde71d1514dcab2eab4ec44a2f82ef597ca87af61bf1cd?s=96&d=retro&r=g","width":96,"height":96,"caption":"Stu"}},{"@type":"WebPage","@id":"http:\/\/www.stuartroberts.net\/index.php\/2012\/06\/14\/spd-webpart-definition-code\/#webpage","url":"http:\/\/www.stuartroberts.net\/index.php\/2012\/06\/14\/spd-webpart-definition-code\/","name":"SPD WebPart Definition Code | Stuart Roberts | SharePoint & M365 Development","description":"Controlling the formatting of WebPart properties when edited in the code pane of SharePoint Designer","inLanguage":"en-GB","isPartOf":{"@id":"http:\/\/www.stuartroberts.net\/#website"},"breadcrumb":{"@id":"http:\/\/www.stuartroberts.net\/index.php\/2012\/06\/14\/spd-webpart-definition-code\/#breadcrumblist"},"author":{"@id":"http:\/\/www.stuartroberts.net\/index.php\/author\/admin\/#author"},"creator":{"@id":"http:\/\/www.stuartroberts.net\/index.php\/author\/admin\/#author"},"datePublished":"2012-06-14T17:24:21+01:00","dateModified":"2012-06-14T17:24:21+01:00"},{"@type":"WebSite","@id":"http:\/\/www.stuartroberts.net\/#website","url":"http:\/\/www.stuartroberts.net\/","name":"Stuart Roberts on all things SharePoint","description":"Practical development guides, solutions and lessons learned across SharePoint, Microsoft 365 and modern development tools","inLanguage":"en-GB","publisher":{"@id":"http:\/\/www.stuartroberts.net\/#person"}}]},"og:locale":"en_GB","og:site_name":"Stuart Roberts | SharePoint &amp; M365 Development | Practical development guides, solutions and lessons learned across SharePoint, Microsoft 365 and modern development tools","og:type":"article","og:title":"SPD WebPart Definition Code | Stuart Roberts | SharePoint &amp; M365 Development","og:description":"Controlling the formatting of WebPart properties when edited in the code pane of SharePoint Designer","og:url":"http:\/\/www.stuartroberts.net\/index.php\/2012\/06\/14\/spd-webpart-definition-code\/","article:published_time":"2012-06-14T16:24:21+00:00","article:modified_time":"2012-06-14T16:24:21+00:00","twitter:card":"summary","twitter:site":"@SharePointStu","twitter:title":"SPD WebPart Definition Code | Stuart Roberts | SharePoint &amp; M365 Development","twitter:description":"Controlling the formatting of WebPart properties when edited in the code pane of SharePoint Designer","twitter:creator":"@SharePointStu"},"aioseo_meta_data":{"post_id":"1031","title":"SPD WebPart Definition Code | #site_title","description":"Controlling the formatting of WebPart properties when edited in the code pane of SharePoint Designer","keywords":[{"label":"SharePoint","value":"SharePoint"},{"label":"SPS","value":"SPS"},{"label":"SP","value":"SP"},{"label":"Designer","value":"Designer"},{"label":"WebPart","value":"WebPart"},{"label":"code pane","value":"code pane"},{"label":"IntelliSense","value":"IntelliSense"}],"keyphrases":null,"primary_term":null,"canonical_url":null,"og_title":null,"og_description":null,"og_object_type":"default","og_image_type":"default","og_image_url":null,"og_image_width":null,"og_image_height":null,"og_image_custom_url":null,"og_image_custom_fields":null,"og_video":null,"og_custom_url":null,"og_article_section":null,"og_article_tags":null,"twitter_use_og":false,"twitter_card":"default","twitter_image_type":"default","twitter_image_url":null,"twitter_image_custom_url":null,"twitter_image_custom_fields":null,"twitter_title":null,"twitter_description":null,"schema":{"blockGraphs":[],"customGraphs":[],"default":{"data":{"Article":[],"Course":[],"Dataset":[],"FAQPage":[],"Movie":[],"Person":[],"Product":[],"ProductReview":[],"Car":[],"Recipe":[],"Service":[],"SoftwareApplication":[],"WebPage":[]},"graphName":"","isEnabled":true},"graphs":[]},"schema_type":null,"schema_type_options":null,"pillar_content":false,"robots_default":true,"robots_noindex":false,"robots_noarchive":false,"robots_nosnippet":false,"robots_nofollow":false,"robots_noimageindex":false,"robots_noodp":false,"robots_notranslate":false,"robots_max_snippet":null,"robots_max_videopreview":null,"robots_max_imagepreview":"large","priority":null,"frequency":null,"local_seo":null,"limit_modified_date":false,"created":"2021-08-03 13:49:30","updated":"2026-10-15 19:06:58","focus_keyword":null,"additional_keywords":null,"truseo_locale":null,"ai":null,"breadcrumb_settings":null,"seo_analyzer_scan_date":null},"aioseo_breadcrumb":"<div class=\"aioseo-breadcrumbs\"><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"http:\/\/www.stuartroberts.net\/\" title=\"Home\">Home<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">\u00bb<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"http:\/\/www.stuartroberts.net\/index.php\/category\/sharepoint\/\" title=\"SharePoint\">SharePoint<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">\u00bb<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"http:\/\/www.stuartroberts.net\/index.php\/category\/sharepoint\/designer\/\" title=\"Designer\">Designer<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">\u00bb<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\tSPD WebPart Definition Code\n\t\t<\/span><\/div>","aioseo_breadcrumb_json":[{"label":"Home","link":"http:\/\/www.stuartroberts.net\/"},{"label":"SharePoint","link":"http:\/\/www.stuartroberts.net\/index.php\/category\/sharepoint\/"},{"label":"Designer","link":"http:\/\/www.stuartroberts.net\/index.php\/category\/sharepoint\/designer\/"},{"label":"SPD WebPart Definition Code","link":"http:\/\/www.stuartroberts.net\/index.php\/2012\/06\/14\/spd-webpart-definition-code\/"}],"jetpack_featured_media_url":"","_links":{"self":[{"href":"http:\/\/www.stuartroberts.net\/index.php\/wp-json\/wp\/v2\/posts\/1031","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.stuartroberts.net\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.stuartroberts.net\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.stuartroberts.net\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.stuartroberts.net\/index.php\/wp-json\/wp\/v2\/comments?post=1031"}],"version-history":[{"count":17,"href":"http:\/\/www.stuartroberts.net\/index.php\/wp-json\/wp\/v2\/posts\/1031\/revisions"}],"predecessor-version":[{"id":1050,"href":"http:\/\/www.stuartroberts.net\/index.php\/wp-json\/wp\/v2\/posts\/1031\/revisions\/1050"}],"wp:attachment":[{"href":"http:\/\/www.stuartroberts.net\/index.php\/wp-json\/wp\/v2\/media?parent=1031"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.stuartroberts.net\/index.php\/wp-json\/wp\/v2\/categories?post=1031"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.stuartroberts.net\/index.php\/wp-json\/wp\/v2\/tags?post=1031"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}