{"id":615,"date":"2012-10-15T23:44:56","date_gmt":"2012-10-16T05:44:56","guid":{"rendered":"https:\/\/toddbaginski.com\/blog\/?p=615"},"modified":"2013-06-28T15:43:33","modified_gmt":"2013-06-28T21:43:33","slug":"enabling-the-effectivedevicechannel-javascript-variable","status":"publish","type":"post","link":"https:\/\/toddbaginski.com\/blog\/enabling-the-effectivedevicechannel-javascript-variable\/","title":{"rendered":"Enabling The effectiveDeviceChannel JavaScript Variable"},"content":{"rendered":"<p>Device Channels in SharePoint can set a JavaScript variable that you can use to dynamically render content based on the Device Channels.\u00a0 The variable is called effectiveDeviceChannel.\u00a0 This variable is turned off by default.\u00a0 To enable it simply add a property named\u00a0 PublishingInformationControlIncludeEffectiveDeviceChannel to the property bag of the root site in your site collection and give it a value of true.<\/p>\n<p>Here\u2019s some PowerShell that does it.<\/p>\n<pre id=\"codeSnippet\">$web = Get-SPWeb <a href=\"http:\/\/wcm.powder.ski\/sites\/pso\">http:\/\/wcm.powder.ski\/sites\/pso<\/a><\/pre>\n<pre>$web.AllProperties[\"PublishingInformationControlIncludeEffectiveDeviceChannel\"] = \"true\"<\/pre>\n<pre>$web.Update()<\/pre>\n<p>After you add the property, you can access it inside a Display Template and react to the variable and render your content based on Device Channels, like this:<\/p>\n<p>&lt;!&#8211;#_<\/p>\n<p>}<\/p>\n<p>if(!line3.isEmpty &amp;&amp; effectiveDeviceChannel!=&#8221;Mobile&#8221;)<\/p>\n<p>{<\/p>\n<p>_#&#8211;&gt;<\/p>\n<p><span style=\"color: #800000; font-family: Consolas; font-size: x-small;\"><span style=\"color: #800000; font-family: Consolas; font-size: x-small;\"><span style=\"color: #800000; font-family: Consolas; font-size: x-small;\">&lt;div <\/span><\/span><\/span><span style=\"color: #ff0000; font-family: Consolas; font-size: x-small;\"><span style=\"color: #ff0000; font-family: Consolas; font-size: x-small;\"><span style=\"color: #ff0000; font-family: Consolas; font-size: x-small;\">class<\/span><\/span><\/span><span style=\"color: #0000ff; font-family: Consolas; font-size: x-small;\"><span style=\"color: #0000ff; font-family: Consolas; font-size: x-small;\"><span style=\"color: #0000ff; font-family: Consolas; font-size: x-small;\">=&#8221;cbs-pictureLine3 ms-textSmall ms-noWrap&#8221;<\/span><\/span><\/span><span style=\"color: #ff0000; font-family: Consolas; font-size: x-small;\"><span style=\"color: #ff0000; font-family: Consolas; font-size: x-small;\"><span style=\"color: #ff0000; font-family: Consolas; font-size: x-small;\">id<\/span><\/span><\/span><span style=\"color: #0000ff; font-family: Consolas; font-size: x-small;\"><span style=\"color: #0000ff; font-family: Consolas; font-size: x-small;\"><span style=\"color: #0000ff; font-family: Consolas; font-size: x-small;\">=&#8221;_#= line3Id =#_&#8221;<\/span><\/span><\/span><span style=\"color: #ff0000; font-family: Consolas; font-size: x-small;\"><span style=\"color: #ff0000; font-family: Consolas; font-size: x-small;\"><span style=\"color: #ff0000; font-family: Consolas; font-size: x-small;\">title<\/span><\/span><\/span><span style=\"color: #0000ff; font-family: Consolas; font-size: x-small;\"><span style=\"color: #0000ff; font-family: Consolas; font-size: x-small;\"><span style=\"color: #0000ff; font-family: Consolas; font-size: x-small;\">=&#8221;_#= line3 =#_&#8221;&gt;<\/span><\/span><\/span><span style=\"font-family: Consolas; font-size: x-small;\"><span style=\"font-family: Consolas; font-size: x-small;\">Model: _#= line3 =#_<\/span><\/span><span style=\"color: #0000ff; font-family: Consolas; font-size: x-small;\"><span style=\"color: #0000ff; font-family: Consolas; font-size: x-small;\"><span style=\"color: #0000ff; font-family: Consolas; font-size: x-small;\">&lt;\/<\/span><\/span><\/span><span style=\"color: #800000; font-family: Consolas; font-size: x-small;\"><span style=\"color: #800000; font-family: Consolas; font-size: x-small;\"><span style=\"color: #800000; font-family: Consolas; font-size: x-small;\">div<\/span><\/span><\/span><span style=\"color: #0000ff; font-family: Consolas; font-size: x-small;\"><span style=\"color: #0000ff; font-family: Consolas; font-size: x-small;\"><span style=\"color: #0000ff; font-family: Consolas; font-size: x-small;\">&gt;<\/span><\/span><\/span><\/p>\n<p><span style=\"color: #006400; font-family: Consolas; font-size: x-small;\"><span style=\"color: #006400; font-family: Consolas; font-size: x-small;\"><span style=\"color: #006400; font-family: Consolas; font-size: x-small;\">&lt;!&#8211;#_<\/span><\/span><\/span><\/p>\n<p>}<\/p>\n<p>This example only renders the Model number for an item displayed by the Content By Search Web Part that uses this Display Template.\u00a0 The Model number is mapped to the line3 variable.<\/p>\n<p>Here\u2019s what the output looks like in the Default Device Channel.\u00a0 Notice the Model number <strong>is displayed<\/strong> for the product.<\/p>\n<p><a href=\"https:\/\/toddbaginski.com\/blog\/wp-content\/uploads\/2012\/10\/image3.png\"><img loading=\"lazy\" decoding=\"async\" style=\"background-image: none; padding-left: 0px; padding-right: 0px; display: inline; padding-top: 0px; border-width: 0px;\" title=\"image\" src=\"https:\/\/toddbaginski.com\/blog\/wp-content\/uploads\/2012\/10\/image_thumb3.png\" alt=\"image\" width=\"284\" height=\"416\" border=\"0\" \/><\/a><\/p>\n<p>Here\u2019s what the output looks like in the Mobile Device Channel.\u00a0 Notice the Model number<strong> is not displayed<\/strong> for the product.<\/p>\n<p><a href=\"https:\/\/toddbaginski.com\/blog\/wp-content\/uploads\/2012\/10\/image4.png\"><img loading=\"lazy\" decoding=\"async\" style=\"background-image: none; padding-left: 0px; padding-right: 0px; display: inline; padding-top: 0px; border-width: 0px;\" title=\"image\" src=\"https:\/\/toddbaginski.com\/blog\/wp-content\/uploads\/2012\/10\/image_thumb4.png\" alt=\"image\" width=\"280\" height=\"433\" border=\"0\" \/><\/a><\/p>\n<p>Go get your ski goggles!\u00a0 ABasin opens in 2 days!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Device Channels in SharePoint can set a JavaScript variable that you can use to dynamically render content based on the Device Channels.\u00a0 The variable is called<span class=\"excerpt-hellip\"> [\u2026]<\/span><\/p>\n","protected":false},"author":1,"featured_media":618,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"om_disable_all_campaigns":false,"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[96,99],"tags":[10,54,57,7,68],"class_list":["post-615","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-mobile","category-sharepoint-2013","tag-custom-development","tag-mobile","tag-mobility","tag-sharepoint","tag-sharepoint-2013"],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 4.9.9 - aioseo.com -->\n\t<meta name=\"description\" content=\"Device Channels in SharePoint can set a JavaScript variable that you can use to dynamically render content based on the Device Channels. The variable is called effectiveDeviceChannel. This variable is turned off by default. To enable it simply add a property named PublishingInformationControlIncludeEffectiveDeviceChannel to the property bag of the root site in your site collection\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<meta name=\"author\" content=\"Todd Baginski\"\/>\n\t<link rel=\"canonical\" href=\"https:\/\/toddbaginski.com\/blog\/enabling-the-effectivedevicechannel-javascript-variable\/\" \/>\n\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 4.9.9\" \/>\n\t\t<meta property=\"og:locale\" content=\"en_US\" \/>\n\t\t<meta property=\"og:site_name\" content=\"Todd Baginski&#039;s Blog - An AI, SharePoint, Office 365, Azure, Power Apps, Power Platform, and Mobile Blog\" \/>\n\t\t<meta property=\"og:type\" content=\"article\" \/>\n\t\t<meta property=\"og:title\" content=\"Enabling The effectiveDeviceChannel JavaScript Variable - Todd Baginski&#039;s Blog\" \/>\n\t\t<meta property=\"og:description\" content=\"Device Channels in SharePoint can set a JavaScript variable that you can use to dynamically render content based on the Device Channels. The variable is called effectiveDeviceChannel. This variable is turned off by default. To enable it simply add a property named PublishingInformationControlIncludeEffectiveDeviceChannel to the property bag of the root site in your site collection\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/toddbaginski.com\/blog\/enabling-the-effectivedevicechannel-javascript-variable\/\" \/>\n\t\t<meta property=\"og:image\" content=\"https:\/\/toddbaginski.com\/blog\/wp-content\/uploads\/2019\/09\/todd-400x400.jpg\" \/>\n\t\t<meta property=\"og:image:secure_url\" content=\"https:\/\/toddbaginski.com\/blog\/wp-content\/uploads\/2019\/09\/todd-400x400.jpg\" \/>\n\t\t<meta property=\"article:published_time\" content=\"2012-10-16T05:44:56+00:00\" \/>\n\t\t<meta property=\"article:modified_time\" content=\"2013-06-28T21:43:33+00:00\" \/>\n\t\t<meta name=\"twitter:card\" content=\"summary\" \/>\n\t\t<meta name=\"twitter:site\" content=\"@toddbaginski\" \/>\n\t\t<meta name=\"twitter:title\" content=\"Enabling The effectiveDeviceChannel JavaScript Variable - Todd Baginski&#039;s Blog\" \/>\n\t\t<meta name=\"twitter:description\" content=\"Device Channels in SharePoint can set a JavaScript variable that you can use to dynamically render content based on the Device Channels. The variable is called effectiveDeviceChannel. This variable is turned off by default. To enable it simply add a property named PublishingInformationControlIncludeEffectiveDeviceChannel to the property bag of the root site in your site collection\" \/>\n\t\t<meta name=\"twitter:creator\" content=\"@toddbaginski\" \/>\n\t\t<meta name=\"twitter:image\" content=\"https:\/\/toddbaginski.com\/blog\/wp-content\/uploads\/2019\/09\/todd-400x400.jpg\" \/>\n\t\t<script type=\"application\/ld+json\" class=\"aioseo-schema\">\n\t\t\t{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"BlogPosting\",\"@id\":\"https:\\\/\\\/toddbaginski.com\\\/blog\\\/enabling-the-effectivedevicechannel-javascript-variable\\\/#blogposting\",\"name\":\"Enabling The effectiveDeviceChannel JavaScript Variable - Todd Baginski's Blog\",\"headline\":\"Enabling The effectiveDeviceChannel JavaScript Variable\",\"author\":{\"@id\":\"https:\\\/\\\/toddbaginski.com\\\/blog\\\/author\\\/todd\\\/#author\"},\"publisher\":{\"@id\":\"https:\\\/\\\/toddbaginski.com\\\/blog\\\/#person\"},\"image\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/toddbaginski.com\\\/blog\\\/wp-content\\\/uploads\\\/2012\\\/10\\\/main-res-sunset-oct-16-2012-e1350367114351.jpg\",\"width\":640,\"height\":480},\"datePublished\":\"2012-10-15T23:44:56-04:00\",\"dateModified\":\"2013-06-28T15:43:33-04:00\",\"inLanguage\":\"en\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/toddbaginski.com\\\/blog\\\/enabling-the-effectivedevicechannel-javascript-variable\\\/#webpage\"},\"isPartOf\":{\"@id\":\"https:\\\/\\\/toddbaginski.com\\\/blog\\\/enabling-the-effectivedevicechannel-javascript-variable\\\/#webpage\"},\"articleSection\":\"Mobile, SharePoint 2013, Custom Development, Mobile, Mobility, SharePoint, SharePoint 2013\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/toddbaginski.com\\\/blog\\\/enabling-the-effectivedevicechannel-javascript-variable\\\/#breadcrumblist\",\"itemListElement\":[{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/toddbaginski.com\\\/blog#listItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/toddbaginski.com\\\/blog\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/toddbaginski.com\\\/blog\\\/category\\\/sharepoint\\\/#listItem\",\"name\":\"SharePoint\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/toddbaginski.com\\\/blog\\\/category\\\/sharepoint\\\/#listItem\",\"position\":2,\"name\":\"SharePoint\",\"item\":\"https:\\\/\\\/toddbaginski.com\\\/blog\\\/category\\\/sharepoint\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/toddbaginski.com\\\/blog\\\/category\\\/sharepoint\\\/sharepoint-2013\\\/#listItem\",\"name\":\"SharePoint 2013\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/toddbaginski.com\\\/blog#listItem\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/toddbaginski.com\\\/blog\\\/category\\\/sharepoint\\\/sharepoint-2013\\\/#listItem\",\"position\":3,\"name\":\"SharePoint 2013\",\"item\":\"https:\\\/\\\/toddbaginski.com\\\/blog\\\/category\\\/sharepoint\\\/sharepoint-2013\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/toddbaginski.com\\\/blog\\\/enabling-the-effectivedevicechannel-javascript-variable\\\/#listItem\",\"name\":\"Enabling The effectiveDeviceChannel JavaScript Variable\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/toddbaginski.com\\\/blog\\\/category\\\/sharepoint\\\/#listItem\",\"name\":\"SharePoint\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/toddbaginski.com\\\/blog\\\/enabling-the-effectivedevicechannel-javascript-variable\\\/#listItem\",\"position\":4,\"name\":\"Enabling The effectiveDeviceChannel JavaScript Variable\",\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/toddbaginski.com\\\/blog\\\/category\\\/sharepoint\\\/sharepoint-2013\\\/#listItem\",\"name\":\"SharePoint 2013\"}}]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/toddbaginski.com\\\/blog\\\/#person\",\"name\":\"Todd Baginski\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/toddbaginski.com\\\/blog\\\/author\\\/todd\\\/#author\",\"url\":\"https:\\\/\\\/toddbaginski.com\\\/blog\\\/author\\\/todd\\\/\",\"name\":\"Todd Baginski\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/toddbaginski.com\\\/blog\\\/enabling-the-effectivedevicechannel-javascript-variable\\\/#webpage\",\"url\":\"https:\\\/\\\/toddbaginski.com\\\/blog\\\/enabling-the-effectivedevicechannel-javascript-variable\\\/\",\"name\":\"Enabling The effectiveDeviceChannel JavaScript Variable - Todd Baginski's Blog\",\"description\":\"Device Channels in SharePoint can set a JavaScript variable that you can use to dynamically render content based on the Device Channels. The variable is called effectiveDeviceChannel. This variable is turned off by default. To enable it simply add a property named PublishingInformationControlIncludeEffectiveDeviceChannel to the property bag of the root site in your site collection\",\"inLanguage\":\"en\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/toddbaginski.com\\\/blog\\\/#website\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/toddbaginski.com\\\/blog\\\/enabling-the-effectivedevicechannel-javascript-variable\\\/#breadcrumblist\"},\"author\":{\"@id\":\"https:\\\/\\\/toddbaginski.com\\\/blog\\\/author\\\/todd\\\/#author\"},\"creator\":{\"@id\":\"https:\\\/\\\/toddbaginski.com\\\/blog\\\/author\\\/todd\\\/#author\"},\"image\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/toddbaginski.com\\\/blog\\\/wp-content\\\/uploads\\\/2012\\\/10\\\/main-res-sunset-oct-16-2012-e1350367114351.jpg\",\"@id\":\"https:\\\/\\\/toddbaginski.com\\\/blog\\\/enabling-the-effectivedevicechannel-javascript-variable\\\/#mainImage\",\"width\":640,\"height\":480},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/toddbaginski.com\\\/blog\\\/enabling-the-effectivedevicechannel-javascript-variable\\\/#mainImage\"},\"datePublished\":\"2012-10-15T23:44:56-04:00\",\"dateModified\":\"2013-06-28T15:43:33-04:00\"},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/toddbaginski.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/toddbaginski.com\\\/blog\\\/\",\"name\":\"Todd Baginski's Blog\",\"description\":\"An AI, SharePoint, Office 365, Azure, Power Apps, Power Platform, and Mobile Blog\",\"inLanguage\":\"en\",\"publisher\":{\"@id\":\"https:\\\/\\\/toddbaginski.com\\\/blog\\\/#person\"}}]}\n\t\t<\/script>\n\t\t<!-- All in One SEO -->\n\n","aioseo_head_json":{"title":"Enabling The effectiveDeviceChannel JavaScript Variable - Todd Baginski's Blog","description":"Device Channels in SharePoint can set a JavaScript variable that you can use to dynamically render content based on the Device Channels. The variable is called effectiveDeviceChannel. This variable is turned off by default. To enable it simply add a property named PublishingInformationControlIncludeEffectiveDeviceChannel to the property bag of the root site in your site collection","canonical_url":"https:\/\/toddbaginski.com\/blog\/enabling-the-effectivedevicechannel-javascript-variable\/","robots":"max-image-preview:large","keywords":"","webmasterTools":{"miscellaneous":""},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"BlogPosting","@id":"https:\/\/toddbaginski.com\/blog\/enabling-the-effectivedevicechannel-javascript-variable\/#blogposting","name":"Enabling The effectiveDeviceChannel JavaScript Variable - Todd Baginski's Blog","headline":"Enabling The effectiveDeviceChannel JavaScript Variable","author":{"@id":"https:\/\/toddbaginski.com\/blog\/author\/todd\/#author"},"publisher":{"@id":"https:\/\/toddbaginski.com\/blog\/#person"},"image":{"@type":"ImageObject","url":"https:\/\/toddbaginski.com\/blog\/wp-content\/uploads\/2012\/10\/main-res-sunset-oct-16-2012-e1350367114351.jpg","width":640,"height":480},"datePublished":"2012-10-15T23:44:56-04:00","dateModified":"2013-06-28T15:43:33-04:00","inLanguage":"en","mainEntityOfPage":{"@id":"https:\/\/toddbaginski.com\/blog\/enabling-the-effectivedevicechannel-javascript-variable\/#webpage"},"isPartOf":{"@id":"https:\/\/toddbaginski.com\/blog\/enabling-the-effectivedevicechannel-javascript-variable\/#webpage"},"articleSection":"Mobile, SharePoint 2013, Custom Development, Mobile, Mobility, SharePoint, SharePoint 2013"},{"@type":"BreadcrumbList","@id":"https:\/\/toddbaginski.com\/blog\/enabling-the-effectivedevicechannel-javascript-variable\/#breadcrumblist","itemListElement":[{"@type":"ListItem","@id":"https:\/\/toddbaginski.com\/blog#listItem","position":1,"name":"Home","item":"https:\/\/toddbaginski.com\/blog","nextItem":{"@type":"ListItem","@id":"https:\/\/toddbaginski.com\/blog\/category\/sharepoint\/#listItem","name":"SharePoint"}},{"@type":"ListItem","@id":"https:\/\/toddbaginski.com\/blog\/category\/sharepoint\/#listItem","position":2,"name":"SharePoint","item":"https:\/\/toddbaginski.com\/blog\/category\/sharepoint\/","nextItem":{"@type":"ListItem","@id":"https:\/\/toddbaginski.com\/blog\/category\/sharepoint\/sharepoint-2013\/#listItem","name":"SharePoint 2013"},"previousItem":{"@type":"ListItem","@id":"https:\/\/toddbaginski.com\/blog#listItem","name":"Home"}},{"@type":"ListItem","@id":"https:\/\/toddbaginski.com\/blog\/category\/sharepoint\/sharepoint-2013\/#listItem","position":3,"name":"SharePoint 2013","item":"https:\/\/toddbaginski.com\/blog\/category\/sharepoint\/sharepoint-2013\/","nextItem":{"@type":"ListItem","@id":"https:\/\/toddbaginski.com\/blog\/enabling-the-effectivedevicechannel-javascript-variable\/#listItem","name":"Enabling The effectiveDeviceChannel JavaScript Variable"},"previousItem":{"@type":"ListItem","@id":"https:\/\/toddbaginski.com\/blog\/category\/sharepoint\/#listItem","name":"SharePoint"}},{"@type":"ListItem","@id":"https:\/\/toddbaginski.com\/blog\/enabling-the-effectivedevicechannel-javascript-variable\/#listItem","position":4,"name":"Enabling The effectiveDeviceChannel JavaScript Variable","previousItem":{"@type":"ListItem","@id":"https:\/\/toddbaginski.com\/blog\/category\/sharepoint\/sharepoint-2013\/#listItem","name":"SharePoint 2013"}}]},{"@type":"Person","@id":"https:\/\/toddbaginski.com\/blog\/#person","name":"Todd Baginski"},{"@type":"Person","@id":"https:\/\/toddbaginski.com\/blog\/author\/todd\/#author","url":"https:\/\/toddbaginski.com\/blog\/author\/todd\/","name":"Todd Baginski"},{"@type":"WebPage","@id":"https:\/\/toddbaginski.com\/blog\/enabling-the-effectivedevicechannel-javascript-variable\/#webpage","url":"https:\/\/toddbaginski.com\/blog\/enabling-the-effectivedevicechannel-javascript-variable\/","name":"Enabling The effectiveDeviceChannel JavaScript Variable - Todd Baginski's Blog","description":"Device Channels in SharePoint can set a JavaScript variable that you can use to dynamically render content based on the Device Channels. The variable is called effectiveDeviceChannel. This variable is turned off by default. To enable it simply add a property named PublishingInformationControlIncludeEffectiveDeviceChannel to the property bag of the root site in your site collection","inLanguage":"en","isPartOf":{"@id":"https:\/\/toddbaginski.com\/blog\/#website"},"breadcrumb":{"@id":"https:\/\/toddbaginski.com\/blog\/enabling-the-effectivedevicechannel-javascript-variable\/#breadcrumblist"},"author":{"@id":"https:\/\/toddbaginski.com\/blog\/author\/todd\/#author"},"creator":{"@id":"https:\/\/toddbaginski.com\/blog\/author\/todd\/#author"},"image":{"@type":"ImageObject","url":"https:\/\/toddbaginski.com\/blog\/wp-content\/uploads\/2012\/10\/main-res-sunset-oct-16-2012-e1350367114351.jpg","@id":"https:\/\/toddbaginski.com\/blog\/enabling-the-effectivedevicechannel-javascript-variable\/#mainImage","width":640,"height":480},"primaryImageOfPage":{"@id":"https:\/\/toddbaginski.com\/blog\/enabling-the-effectivedevicechannel-javascript-variable\/#mainImage"},"datePublished":"2012-10-15T23:44:56-04:00","dateModified":"2013-06-28T15:43:33-04:00"},{"@type":"WebSite","@id":"https:\/\/toddbaginski.com\/blog\/#website","url":"https:\/\/toddbaginski.com\/blog\/","name":"Todd Baginski's Blog","description":"An AI, SharePoint, Office 365, Azure, Power Apps, Power Platform, and Mobile Blog","inLanguage":"en","publisher":{"@id":"https:\/\/toddbaginski.com\/blog\/#person"}}]},"og:locale":"en_US","og:site_name":"Todd Baginski's Blog - An AI, SharePoint, Office 365, Azure, Power Apps, Power Platform, and Mobile Blog","og:type":"article","og:title":"Enabling The effectiveDeviceChannel JavaScript Variable - Todd Baginski's Blog","og:description":"Device Channels in SharePoint can set a JavaScript variable that you can use to dynamically render content based on the Device Channels. The variable is called effectiveDeviceChannel. This variable is turned off by default. To enable it simply add a property named PublishingInformationControlIncludeEffectiveDeviceChannel to the property bag of the root site in your site collection","og:url":"https:\/\/toddbaginski.com\/blog\/enabling-the-effectivedevicechannel-javascript-variable\/","og:image":"https:\/\/toddbaginski.com\/blog\/wp-content\/uploads\/2019\/09\/todd-400x400.jpg","og:image:secure_url":"https:\/\/toddbaginski.com\/blog\/wp-content\/uploads\/2019\/09\/todd-400x400.jpg","article:published_time":"2012-10-16T05:44:56+00:00","article:modified_time":"2013-06-28T21:43:33+00:00","twitter:card":"summary","twitter:site":"@toddbaginski","twitter:title":"Enabling The effectiveDeviceChannel JavaScript Variable - Todd Baginski's Blog","twitter:description":"Device Channels in SharePoint can set a JavaScript variable that you can use to dynamically render content based on the Device Channels. The variable is called effectiveDeviceChannel. This variable is turned off by default. To enable it simply add a property named PublishingInformationControlIncludeEffectiveDeviceChannel to the property bag of the root site in your site collection","twitter:creator":"@toddbaginski","twitter:image":"https:\/\/toddbaginski.com\/blog\/wp-content\/uploads\/2019\/09\/todd-400x400.jpg"},"aioseo_meta_data":{"post_id":"615","title":null,"description":null,"keywords":null,"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":"BlogPosting","isEnabled":true},"graphs":[]},"schema_type":"default","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":"2022-02-14 16:00:18","updated":"2025-06-03 21:03:01"},"aioseo_breadcrumb":"<div class=\"aioseo-breadcrumbs\"><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/toddbaginski.com\/blog\" title=\"Home\">Home<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/toddbaginski.com\/blog\/category\/sharepoint\/\" title=\"SharePoint\">SharePoint<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/toddbaginski.com\/blog\/category\/sharepoint\/sharepoint-2013\/\" title=\"SharePoint 2013\">SharePoint 2013<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\tEnabling The effectiveDeviceChannel JavaScript Variable\n\t\t<\/span><\/div>","aioseo_breadcrumb_json":[{"label":"Home","link":"https:\/\/toddbaginski.com\/blog"},{"label":"SharePoint","link":"https:\/\/toddbaginski.com\/blog\/category\/sharepoint\/"},{"label":"SharePoint 2013","link":"https:\/\/toddbaginski.com\/blog\/category\/sharepoint\/sharepoint-2013\/"},{"label":"Enabling The effectiveDeviceChannel JavaScript Variable","link":"https:\/\/toddbaginski.com\/blog\/enabling-the-effectivedevicechannel-javascript-variable\/"}],"_links":{"self":[{"href":"https:\/\/toddbaginski.com\/blog\/wp-json\/wp\/v2\/posts\/615","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/toddbaginski.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/toddbaginski.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/toddbaginski.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/toddbaginski.com\/blog\/wp-json\/wp\/v2\/comments?post=615"}],"version-history":[{"count":6,"href":"https:\/\/toddbaginski.com\/blog\/wp-json\/wp\/v2\/posts\/615\/revisions"}],"predecessor-version":[{"id":621,"href":"https:\/\/toddbaginski.com\/blog\/wp-json\/wp\/v2\/posts\/615\/revisions\/621"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/toddbaginski.com\/blog\/wp-json\/wp\/v2\/media\/618"}],"wp:attachment":[{"href":"https:\/\/toddbaginski.com\/blog\/wp-json\/wp\/v2\/media?parent=615"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/toddbaginski.com\/blog\/wp-json\/wp\/v2\/categories?post=615"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/toddbaginski.com\/blog\/wp-json\/wp\/v2\/tags?post=615"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}