{"id":56,"date":"2015-02-20T13:14:39","date_gmt":"2015-02-20T13:14:39","guid":{"rendered":"http:\/\/webdev.cedarville.edu\/blog\/?p=56"},"modified":"2015-02-20T13:14:39","modified_gmt":"2015-02-20T13:14:39","slug":"automatically-remove-masthead-images-from-cedarville-edu","status":"publish","type":"post","link":"https:\/\/webdev.cedarville.edu\/blog\/2015\/automatically-remove-masthead-images-from-cedarville-edu\/","title":{"rendered":"Automatically Remove Masthead Images from Cedarville.edu"},"content":{"rendered":"<p>Masthead images on our website change constantly. Many of them promote events that are date specific and need to be removed when the event has passed. Sitecore has a nice feature that allows you to add a <strong>Publishable To<\/strong> date to a masthead item indicating when you want it to be removed from the website. The problem is that you have to remember to publish the masthead on that date in order for it to be removed! It kind of defeats the purpose don&#8217;t you think?<\/p>\n<p>We did too! So we wrote a daily process that searches the Sitecore tree and identifies masthead items to be removed. Any masthead where the current date matches the <strong>Publishable To<\/strong> date will be removed from all web pages that contain it. The masthead itself is not deleted.<\/p>\n<p>To set the <strong>Publishable To<\/strong> date, click on the masthead item in the Assets folder under the item you are working on.<\/p>\n<p>On the <strong>Publish<\/strong> tab, click <strong>Change<\/strong> and the <em>Publish Settings<\/em> window will appear.<\/p>\n<p><a href=\"https:\/\/i0.wp.com\/webdev.cedarville.edu\/blog\/wp-content\/uploads\/2015\/02\/publish-change.jpg\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-59\" src=\"https:\/\/i0.wp.com\/webdev.cedarville.edu\/blog\/wp-content\/uploads\/2015\/02\/publish-change-300x116.jpg?resize=300%2C116\" alt=\"publish-change\" width=\"300\" height=\"116\" srcset=\"https:\/\/i0.wp.com\/webdev.cedarville.edu\/blog\/wp-content\/uploads\/2015\/02\/publish-change.jpg?resize=300%2C116&amp;ssl=1 300w, https:\/\/i0.wp.com\/webdev.cedarville.edu\/blog\/wp-content\/uploads\/2015\/02\/publish-change.jpg?w=346&amp;ssl=1 346w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>Select the <strong>Item<\/strong> tab. In the <strong>Publishable To<\/strong> field, click the first down arrow to select the date that you want the masthead to be removed. (The second arrow is for the time. We aren&#8217;t using that.)<\/p>\n<p><a href=\"https:\/\/i0.wp.com\/webdev.cedarville.edu\/blog\/wp-content\/uploads\/2015\/02\/publishing-settings.jpg\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-60\" src=\"https:\/\/i0.wp.com\/webdev.cedarville.edu\/blog\/wp-content\/uploads\/2015\/02\/publishing-settings-300x258.jpg?resize=300%2C258\" alt=\"publishing-settings\" width=\"300\" height=\"258\" srcset=\"https:\/\/i0.wp.com\/webdev.cedarville.edu\/blog\/wp-content\/uploads\/2015\/02\/publishing-settings.jpg?resize=300%2C258&amp;ssl=1 300w, https:\/\/i0.wp.com\/webdev.cedarville.edu\/blog\/wp-content\/uploads\/2015\/02\/publishing-settings.jpg?w=451&amp;ssl=1 451w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>Click OK.<\/p>\n<p>Publish the masthead to beta for preview and submit it to the workflow. That&#8217;s all there is to it!<\/p>\n<p><strong>A Look Ahead<\/strong><\/p>\n<p>We have plans to modify the update process to also look for <strong>Publishable From<\/strong> dates. You will be able to submit masthead images ahead of time and they will appear on the website on the date you choose.<\/p>\n","protected":false},"excerpt":{"rendered":"Masthead images on our website change constantly. Many of them promote events that are date specific and need to be removed when the event has passed. Sitecore has a nice feature that allows you to add a Publishable To date to a masthead item indicating when you want it to be removed from the website&#8230;. <a class=\"view-article\" href=\"https:\/\/webdev.cedarville.edu\/blog\/2015\/automatically-remove-masthead-images-from-cedarville-edu\/\">View Article<\/a>","protected":false},"author":4,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[8],"tags":[],"class_list":["post-56","post","type-post","status-publish","format-standard","hentry","category-sitecore-tips"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Automatically Remove Masthead Images from Cedarville.edu - Cedarville Web Services<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/webdev.cedarville.edu\/blog\/2015\/automatically-remove-masthead-images-from-cedarville-edu\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Automatically Remove Masthead Images from Cedarville.edu - Cedarville Web Services\" \/>\n<meta property=\"og:description\" content=\"Masthead images on our website change constantly. Many of them promote events that are date specific and need to be removed when the event has passed. Sitecore has a nice feature that allows you to add a Publishable To date to a masthead item indicating when you want it to be removed from the website.... View Article\" \/>\n<meta property=\"og:url\" content=\"https:\/\/webdev.cedarville.edu\/blog\/2015\/automatically-remove-masthead-images-from-cedarville-edu\/\" \/>\n<meta property=\"og:site_name\" content=\"Cedarville Web Services\" \/>\n<meta property=\"article:published_time\" content=\"2015-02-20T13:14:39+00:00\" \/>\n<meta property=\"og:image\" content=\"http:\/\/webdev.cedarville.edu\/blog\/wp-content\/uploads\/2015\/02\/publish-change-300x116.jpg\" \/>\n<meta name=\"author\" content=\"Bill Rubosky\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Bill Rubosky\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/webdev.cedarville.edu\\\/blog\\\/2015\\\/automatically-remove-masthead-images-from-cedarville-edu\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/webdev.cedarville.edu\\\/blog\\\/2015\\\/automatically-remove-masthead-images-from-cedarville-edu\\\/\"},\"author\":{\"name\":\"Bill Rubosky\",\"@id\":\"https:\\\/\\\/webdev.cedarville.edu\\\/blog\\\/#\\\/schema\\\/person\\\/d52f63803cfe97ec7ed0b311618c97ab\"},\"headline\":\"Automatically Remove Masthead Images from Cedarville.edu\",\"datePublished\":\"2015-02-20T13:14:39+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/webdev.cedarville.edu\\\/blog\\\/2015\\\/automatically-remove-masthead-images-from-cedarville-edu\\\/\"},\"wordCount\":278,\"commentCount\":0,\"image\":{\"@id\":\"https:\\\/\\\/webdev.cedarville.edu\\\/blog\\\/2015\\\/automatically-remove-masthead-images-from-cedarville-edu\\\/#primaryimage\"},\"thumbnailUrl\":\"http:\\\/\\\/webdev.cedarville.edu\\\/blog\\\/wp-content\\\/uploads\\\/2015\\\/02\\\/publish-change-300x116.jpg\",\"articleSection\":[\"Sitecore Tips\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/webdev.cedarville.edu\\\/blog\\\/2015\\\/automatically-remove-masthead-images-from-cedarville-edu\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/webdev.cedarville.edu\\\/blog\\\/2015\\\/automatically-remove-masthead-images-from-cedarville-edu\\\/\",\"url\":\"https:\\\/\\\/webdev.cedarville.edu\\\/blog\\\/2015\\\/automatically-remove-masthead-images-from-cedarville-edu\\\/\",\"name\":\"Automatically Remove Masthead Images from Cedarville.edu - Cedarville Web Services\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/webdev.cedarville.edu\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/webdev.cedarville.edu\\\/blog\\\/2015\\\/automatically-remove-masthead-images-from-cedarville-edu\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/webdev.cedarville.edu\\\/blog\\\/2015\\\/automatically-remove-masthead-images-from-cedarville-edu\\\/#primaryimage\"},\"thumbnailUrl\":\"http:\\\/\\\/webdev.cedarville.edu\\\/blog\\\/wp-content\\\/uploads\\\/2015\\\/02\\\/publish-change-300x116.jpg\",\"datePublished\":\"2015-02-20T13:14:39+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/webdev.cedarville.edu\\\/blog\\\/#\\\/schema\\\/person\\\/d52f63803cfe97ec7ed0b311618c97ab\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/webdev.cedarville.edu\\\/blog\\\/2015\\\/automatically-remove-masthead-images-from-cedarville-edu\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/webdev.cedarville.edu\\\/blog\\\/2015\\\/automatically-remove-masthead-images-from-cedarville-edu\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/webdev.cedarville.edu\\\/blog\\\/2015\\\/automatically-remove-masthead-images-from-cedarville-edu\\\/#primaryimage\",\"url\":\"http:\\\/\\\/webdev.cedarville.edu\\\/blog\\\/wp-content\\\/uploads\\\/2015\\\/02\\\/publish-change-300x116.jpg\",\"contentUrl\":\"http:\\\/\\\/webdev.cedarville.edu\\\/blog\\\/wp-content\\\/uploads\\\/2015\\\/02\\\/publish-change-300x116.jpg\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/webdev.cedarville.edu\\\/blog\\\/2015\\\/automatically-remove-masthead-images-from-cedarville-edu\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/webdev.cedarville.edu\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Automatically Remove Masthead Images from Cedarville.edu\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/webdev.cedarville.edu\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/webdev.cedarville.edu\\\/blog\\\/\",\"name\":\"Cedarville Web Services\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/webdev.cedarville.edu\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/webdev.cedarville.edu\\\/blog\\\/#\\\/schema\\\/person\\\/d52f63803cfe97ec7ed0b311618c97ab\",\"name\":\"Bill Rubosky\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/352807894b055d1fe376e88d6091a11968e7b96d87b26d3ae3eaf233099b158f?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/352807894b055d1fe376e88d6091a11968e7b96d87b26d3ae3eaf233099b158f?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/352807894b055d1fe376e88d6091a11968e7b96d87b26d3ae3eaf233099b158f?s=96&d=mm&r=g\",\"caption\":\"Bill Rubosky\"},\"url\":\"https:\\\/\\\/webdev.cedarville.edu\\\/blog\\\/author\\\/billrubosky\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Automatically Remove Masthead Images from Cedarville.edu - Cedarville Web Services","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":"https:\/\/webdev.cedarville.edu\/blog\/2015\/automatically-remove-masthead-images-from-cedarville-edu\/","og_locale":"en_US","og_type":"article","og_title":"Automatically Remove Masthead Images from Cedarville.edu - Cedarville Web Services","og_description":"Masthead images on our website change constantly. Many of them promote events that are date specific and need to be removed when the event has passed. Sitecore has a nice feature that allows you to add a Publishable To date to a masthead item indicating when you want it to be removed from the website.... View Article","og_url":"https:\/\/webdev.cedarville.edu\/blog\/2015\/automatically-remove-masthead-images-from-cedarville-edu\/","og_site_name":"Cedarville Web Services","article_published_time":"2015-02-20T13:14:39+00:00","og_image":[{"url":"http:\/\/webdev.cedarville.edu\/blog\/wp-content\/uploads\/2015\/02\/publish-change-300x116.jpg","type":"","width":"","height":""}],"author":"Bill Rubosky","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Bill Rubosky","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/webdev.cedarville.edu\/blog\/2015\/automatically-remove-masthead-images-from-cedarville-edu\/#article","isPartOf":{"@id":"https:\/\/webdev.cedarville.edu\/blog\/2015\/automatically-remove-masthead-images-from-cedarville-edu\/"},"author":{"name":"Bill Rubosky","@id":"https:\/\/webdev.cedarville.edu\/blog\/#\/schema\/person\/d52f63803cfe97ec7ed0b311618c97ab"},"headline":"Automatically Remove Masthead Images from Cedarville.edu","datePublished":"2015-02-20T13:14:39+00:00","mainEntityOfPage":{"@id":"https:\/\/webdev.cedarville.edu\/blog\/2015\/automatically-remove-masthead-images-from-cedarville-edu\/"},"wordCount":278,"commentCount":0,"image":{"@id":"https:\/\/webdev.cedarville.edu\/blog\/2015\/automatically-remove-masthead-images-from-cedarville-edu\/#primaryimage"},"thumbnailUrl":"http:\/\/webdev.cedarville.edu\/blog\/wp-content\/uploads\/2015\/02\/publish-change-300x116.jpg","articleSection":["Sitecore Tips"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/webdev.cedarville.edu\/blog\/2015\/automatically-remove-masthead-images-from-cedarville-edu\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/webdev.cedarville.edu\/blog\/2015\/automatically-remove-masthead-images-from-cedarville-edu\/","url":"https:\/\/webdev.cedarville.edu\/blog\/2015\/automatically-remove-masthead-images-from-cedarville-edu\/","name":"Automatically Remove Masthead Images from Cedarville.edu - Cedarville Web Services","isPartOf":{"@id":"https:\/\/webdev.cedarville.edu\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/webdev.cedarville.edu\/blog\/2015\/automatically-remove-masthead-images-from-cedarville-edu\/#primaryimage"},"image":{"@id":"https:\/\/webdev.cedarville.edu\/blog\/2015\/automatically-remove-masthead-images-from-cedarville-edu\/#primaryimage"},"thumbnailUrl":"http:\/\/webdev.cedarville.edu\/blog\/wp-content\/uploads\/2015\/02\/publish-change-300x116.jpg","datePublished":"2015-02-20T13:14:39+00:00","author":{"@id":"https:\/\/webdev.cedarville.edu\/blog\/#\/schema\/person\/d52f63803cfe97ec7ed0b311618c97ab"},"breadcrumb":{"@id":"https:\/\/webdev.cedarville.edu\/blog\/2015\/automatically-remove-masthead-images-from-cedarville-edu\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/webdev.cedarville.edu\/blog\/2015\/automatically-remove-masthead-images-from-cedarville-edu\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/webdev.cedarville.edu\/blog\/2015\/automatically-remove-masthead-images-from-cedarville-edu\/#primaryimage","url":"http:\/\/webdev.cedarville.edu\/blog\/wp-content\/uploads\/2015\/02\/publish-change-300x116.jpg","contentUrl":"http:\/\/webdev.cedarville.edu\/blog\/wp-content\/uploads\/2015\/02\/publish-change-300x116.jpg"},{"@type":"BreadcrumbList","@id":"https:\/\/webdev.cedarville.edu\/blog\/2015\/automatically-remove-masthead-images-from-cedarville-edu\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/webdev.cedarville.edu\/blog\/"},{"@type":"ListItem","position":2,"name":"Automatically Remove Masthead Images from Cedarville.edu"}]},{"@type":"WebSite","@id":"https:\/\/webdev.cedarville.edu\/blog\/#website","url":"https:\/\/webdev.cedarville.edu\/blog\/","name":"Cedarville Web Services","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/webdev.cedarville.edu\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/webdev.cedarville.edu\/blog\/#\/schema\/person\/d52f63803cfe97ec7ed0b311618c97ab","name":"Bill Rubosky","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/352807894b055d1fe376e88d6091a11968e7b96d87b26d3ae3eaf233099b158f?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/352807894b055d1fe376e88d6091a11968e7b96d87b26d3ae3eaf233099b158f?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/352807894b055d1fe376e88d6091a11968e7b96d87b26d3ae3eaf233099b158f?s=96&d=mm&r=g","caption":"Bill Rubosky"},"url":"https:\/\/webdev.cedarville.edu\/blog\/author\/billrubosky\/"}]}},"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/webdev.cedarville.edu\/blog\/wp-json\/wp\/v2\/posts\/56","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/webdev.cedarville.edu\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/webdev.cedarville.edu\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/webdev.cedarville.edu\/blog\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/webdev.cedarville.edu\/blog\/wp-json\/wp\/v2\/comments?post=56"}],"version-history":[{"count":5,"href":"https:\/\/webdev.cedarville.edu\/blog\/wp-json\/wp\/v2\/posts\/56\/revisions"}],"predecessor-version":[{"id":78,"href":"https:\/\/webdev.cedarville.edu\/blog\/wp-json\/wp\/v2\/posts\/56\/revisions\/78"}],"wp:attachment":[{"href":"https:\/\/webdev.cedarville.edu\/blog\/wp-json\/wp\/v2\/media?parent=56"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/webdev.cedarville.edu\/blog\/wp-json\/wp\/v2\/categories?post=56"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/webdev.cedarville.edu\/blog\/wp-json\/wp\/v2\/tags?post=56"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}