{"id":372,"date":"2011-01-05T15:52:15","date_gmt":"2011-01-05T15:52:15","guid":{"rendered":"http:\/\/jonathanbjorkskog.com\/?p=372"},"modified":"2011-09-15T12:56:24","modified_gmt":"2011-09-15T12:56:24","slug":"hide-block-for-certain-content-type-in-drupal","status":"publish","type":"post","link":"https:\/\/jonathanbjorkskog.com\/fi\/hide-block-for-certain-content-type-in-drupal","title":{"rendered":"Piilota lohko tietylle sis\u00e4lt\u00f6tyypille Drupal 6:ssa"},"content":{"rendered":"<div>Quite often you want to hide or show a block only for a specific content type in Drupal. There is a quite simple hack you can do for\u00a0achieving that!\u00a0This is for Drupal 6, in Drupal 7 there is a core function that lets you do the same.\u00a0Use this code to hide a block for a certain content type in drupal 6:<\/div>\n<div><!--more--><\/div>\n<blockquote>\n<div>\n<div id=\"_mcePaste\"><span style=\"color: #ff0000;\">&lt;?php<\/span><\/div>\n<div id=\"_mcePaste\"><span style=\"color: #ff0000;\">$match = TRUE;<\/span><\/div>\n<div id=\"_mcePaste\"><span style=\"color: #ff0000;\">$types = array(&#8216;library&#8217; =&gt; 1);<\/span><\/div>\n<div id=\"_mcePaste\"><span style=\"color: #ff0000;\">if (arg(0) == &#8216;node&#8217; &amp;&amp; is_numeric(arg(1))) {<\/span><\/div>\n<div id=\"_mcePaste\"><span style=\"color: #ff0000;\">$nid = arg(1);<\/span><\/div>\n<div id=\"_mcePaste\"><span style=\"color: #ff0000;\">$node = node_load(array(&#8216;nid&#8217; =&gt; $nid));<\/span><\/div>\n<div id=\"_mcePaste\"><span style=\"color: #ff0000;\">$type = $node-&gt;type;<\/span><\/div>\n<div id=\"_mcePaste\"><span style=\"color: #ff0000;\">if (isset($types[$type])) {<\/span><\/div>\n<div id=\"_mcePaste\"><span style=\"color: #ff0000;\">$match = FALSE;<\/span><\/div>\n<div id=\"_mcePaste\"><span style=\"color: #ff0000;\">}<\/span><\/div>\n<div id=\"_mcePaste\"><span style=\"color: #ff0000;\">}<\/span><\/div>\n<div id=\"_mcePaste\"><span style=\"color: #ff0000;\">if (drupal_is_front_page()) {<\/span><\/div>\n<div id=\"_mcePaste\"><span style=\"color: #ff0000;\">$match = FALSE;<\/span><\/div>\n<div id=\"_mcePaste\"><span style=\"color: #ff0000;\">}<\/span><\/div>\n<div id=\"_mcePaste\"><span style=\"color: #ff0000;\">return $match;<\/span><\/div>\n<div id=\"_mcePaste\"><span style=\"color: #ff0000;\">?&gt;<\/span><\/div>\n<\/div>\n<\/blockquote>\n<p>When editing a block, paste this in the box on the bottom of the page and chose &#8220;show only if the following php-code returns &#8216;true&#8217;.&#8221; Then the block will show on every content type except the &#8220;library&#8221;-one, and neither on the frontpage. Of course you can change the &#8220;library&#8221; to whatever content type you want. As you see, a little lower in the code you find this:\u00a0<span style=\"color: #ff0000;\">if (drupal_is_front_page())<\/span>, that means that we hide it also on the frontpage. Remove that line and the two under it if you don&#8217;t want to use that function.<\/p>\n<p>You like posts about Drupal? Then, read also my post about <a title=\"create quick tab blocks with cck fields in it\" href=\"http:\/\/jonathanbjorkskog.com\/create-quicktab-block-that-is-populated-by-cck-fields\" target=\"_self\">how to create quicktab blocks with cck fields inside<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Usein haluat piilottaa tai n\u00e4ytt\u00e4\u00e4 lohkon vain tietylle sis\u00e4lt\u00f6tyypille Drupalissa. Voit tehd\u00e4 melko yksinkertaisen hakkerin, jolla se onnistuu! T\u00e4m\u00e4 koskee Drupal 6:sta, Drupal 7:ss\u00e4 on ydintoiminto, jonka avulla voit tehd\u00e4 saman. K\u00e4yt\u00e4 t\u00e4t\u00e4 koodia piilottaaksesi lohkon...<\/p>","protected":false},"author":1,"featured_media":374,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_uag_custom_page_level_css":"","_kadence_starter_templates_imported_post":false,"_kad_post_transparent":"","_kad_post_title":"","_kad_post_layout":"","_kad_post_sidebar_id":"","_kad_post_content_style":"","_kad_post_vertical_padding":"","_kad_post_feature":"","_kad_post_feature_position":"","_kad_post_header":false,"_kad_post_footer":false,"footnotes":""},"categories":[50],"tags":[],"class_list":["post-372","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-drupal"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.8 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Hide block for certain content type in Drupal 6 - Jonathan Bj\u00f6rkskog<\/title>\n<meta name=\"description\" content=\"You can hide blocks only for a specific node-type in Drupal if you want. Use this code to hide a block for a certain content type in drupal..\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/jonathanbjorkskog.com\/fi\/hide-block-for-certain-content-type-in-drupal\/\" \/>\n<meta property=\"og:locale\" content=\"fi_FI\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Hide block for certain content type in Drupal 6 - Jonathan Bj\u00f6rkskog\" \/>\n<meta property=\"og:description\" content=\"You can hide blocks only for a specific node-type in Drupal if you want. Use this code to hide a block for a certain content type in drupal..\" \/>\n<meta property=\"og:url\" content=\"https:\/\/jonathanbjorkskog.com\/fi\/hide-block-for-certain-content-type-in-drupal\/\" \/>\n<meta property=\"og:site_name\" content=\"Jonathan Bj\u00f6rkskog\" \/>\n<meta property=\"article:author\" content=\"https:\/\/www.facebook.com\/Jonathan.Bjorkskog\" \/>\n<meta property=\"article:published_time\" content=\"2011-01-05T15:52:15+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2011-09-15T12:56:24+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/jonathanbjorkskog.com\/wp-content\/uploads\/2011\/01\/Drupal_Man.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"333\" \/>\n\t<meta property=\"og:image:height\" content=\"500\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Jonathan\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@https:\/\/twitter.com\/JonathanBJ\" \/>\n<meta name=\"twitter:label1\" content=\"Kirjoittanut\" \/>\n\t<meta name=\"twitter:data1\" content=\"Jonathan\" \/>\n\t<meta name=\"twitter:label2\" content=\"Arvioitu lukuaika\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minuutti\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/jonathanbjorkskog.com\\\/hide-block-for-certain-content-type-in-drupal#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/jonathanbjorkskog.com\\\/hide-block-for-certain-content-type-in-drupal\"},\"author\":{\"name\":\"Jonathan\",\"@id\":\"https:\\\/\\\/jonathanbjorkskog.com\\\/#\\\/schema\\\/person\\\/dc27f073951abad63af3a5988d59cad0\"},\"headline\":\"Hide block for certain content type in Drupal 6\",\"datePublished\":\"2011-01-05T15:52:15+00:00\",\"dateModified\":\"2011-09-15T12:56:24+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/jonathanbjorkskog.com\\\/hide-block-for-certain-content-type-in-drupal\"},\"wordCount\":234,\"commentCount\":2,\"publisher\":{\"@id\":\"https:\\\/\\\/jonathanbjorkskog.com\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/jonathanbjorkskog.com\\\/hide-block-for-certain-content-type-in-drupal#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/jonathanbjorkskog.com\\\/wp-content\\\/uploads\\\/2011\\\/01\\\/Drupal_Man.jpg\",\"articleSection\":[\"Drupal\"],\"inLanguage\":\"fi\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/jonathanbjorkskog.com\\\/hide-block-for-certain-content-type-in-drupal#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/jonathanbjorkskog.com\\\/hide-block-for-certain-content-type-in-drupal\",\"url\":\"https:\\\/\\\/jonathanbjorkskog.com\\\/hide-block-for-certain-content-type-in-drupal\",\"name\":\"Hide block for certain content type in Drupal 6 - Jonathan Bj\u00f6rkskog\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/jonathanbjorkskog.com\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/jonathanbjorkskog.com\\\/hide-block-for-certain-content-type-in-drupal#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/jonathanbjorkskog.com\\\/hide-block-for-certain-content-type-in-drupal#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/jonathanbjorkskog.com\\\/wp-content\\\/uploads\\\/2011\\\/01\\\/Drupal_Man.jpg\",\"datePublished\":\"2011-01-05T15:52:15+00:00\",\"dateModified\":\"2011-09-15T12:56:24+00:00\",\"description\":\"You can hide blocks only for a specific node-type in Drupal if you want. Use this code to hide a block for a certain content type in drupal..\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/jonathanbjorkskog.com\\\/hide-block-for-certain-content-type-in-drupal#breadcrumb\"},\"inLanguage\":\"fi\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/jonathanbjorkskog.com\\\/hide-block-for-certain-content-type-in-drupal\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"fi\",\"@id\":\"https:\\\/\\\/jonathanbjorkskog.com\\\/hide-block-for-certain-content-type-in-drupal#primaryimage\",\"url\":\"https:\\\/\\\/jonathanbjorkskog.com\\\/wp-content\\\/uploads\\\/2011\\\/01\\\/Drupal_Man.jpg\",\"contentUrl\":\"https:\\\/\\\/jonathanbjorkskog.com\\\/wp-content\\\/uploads\\\/2011\\\/01\\\/Drupal_Man.jpg\",\"width\":\"333\",\"height\":\"500\",\"caption\":\"The Drupal Man shows how to hide block only for certain content type!\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/jonathanbjorkskog.com\\\/hide-block-for-certain-content-type-in-drupal#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/jonathanbjorkskog.com\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Drupal\",\"item\":\"https:\\\/\\\/jonathanbjorkskog.com\\\/category\\\/drupal\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Hide block for certain content type in Drupal 6\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/jonathanbjorkskog.com\\\/#website\",\"url\":\"https:\\\/\\\/jonathanbjorkskog.com\\\/\",\"name\":\"Jonathan Bj\u00f6rkskog\",\"description\":\"Growth Marketing since 2009\",\"publisher\":{\"@id\":\"https:\\\/\\\/jonathanbjorkskog.com\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/jonathanbjorkskog.com\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"fi\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/jonathanbjorkskog.com\\\/#organization\",\"name\":\"Jonathan Bj\u00f6rkskog\",\"url\":\"https:\\\/\\\/jonathanbjorkskog.com\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"fi\",\"@id\":\"https:\\\/\\\/jonathanbjorkskog.com\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/jonathanbjorkskog.com\\\/wp-content\\\/uploads\\\/2010\\\/06\\\/8330_154078676372_561696372_3193947_7420903_n.jpg\",\"contentUrl\":\"https:\\\/\\\/jonathanbjorkskog.com\\\/wp-content\\\/uploads\\\/2010\\\/06\\\/8330_154078676372_561696372_3193947_7420903_n.jpg\",\"width\":\"391\",\"height\":\"401\",\"caption\":\"Jonathan Bj\u00f6rkskog\"},\"image\":{\"@id\":\"https:\\\/\\\/jonathanbjorkskog.com\\\/#\\\/schema\\\/logo\\\/image\\\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/jonathanbjorkskog.com\\\/#\\\/schema\\\/person\\\/dc27f073951abad63af3a5988d59cad0\",\"name\":\"Jonathan\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"fi\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/639d9916e0b5fbdf8638629287dba1e9e01aa58ac3db092f0d436b15e176a751?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/639d9916e0b5fbdf8638629287dba1e9e01aa58ac3db092f0d436b15e176a751?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/639d9916e0b5fbdf8638629287dba1e9e01aa58ac3db092f0d436b15e176a751?s=96&d=mm&r=g\",\"caption\":\"Jonathan\"},\"description\":\"Jonathan Bj\u00f6rkskog is a marketer \\\/ Growth Hacker from Finland, that has been working full time with marketing for big corporations and some of the largest e-commerce sites in Northern Europe. With a passion for organic search, content, and growth, and a background in tech and coding, he has a broad overview of the strategies and tactics of online marketing. Having started up an agency with over 100 employees also helps to get a broad overview of what any kind of business could do to be successful online.\",\"sameAs\":[\"https:\\\/\\\/jonathanbjorkskog.com\\\/\",\"https:\\\/\\\/www.facebook.com\\\/Jonathan.Bjorkskog\",\"https:\\\/\\\/www.instagram.com\\\/jonathanbjorkskog\\\/\",\"https:\\\/\\\/www.linkedin.com\\\/in\\\/jonathanbjorkskog\\\/\",\"https:\\\/\\\/x.com\\\/https:\\\/\\\/twitter.com\\\/JonathanBJ\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Piilota lohko tietylle sis\u00e4lt\u00f6tyypille Drupal 6:ssa - Jonathan Bj\u00f6rkskog","description":"Voit halutessasi piilottaa lohkoja vain tietylle solmutyypille Drupalissa. K\u00e4yt\u00e4 t\u00e4t\u00e4 koodia lohkon piilottamiseen tietylle sis\u00e4lt\u00f6tyypille Drupalissa....","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:\/\/jonathanbjorkskog.com\/fi\/hide-block-for-certain-content-type-in-drupal\/","og_locale":"fi_FI","og_type":"article","og_title":"Hide block for certain content type in Drupal 6 - Jonathan Bj\u00f6rkskog","og_description":"You can hide blocks only for a specific node-type in Drupal if you want. Use this code to hide a block for a certain content type in drupal..","og_url":"https:\/\/jonathanbjorkskog.com\/fi\/hide-block-for-certain-content-type-in-drupal\/","og_site_name":"Jonathan Bj\u00f6rkskog","article_author":"https:\/\/www.facebook.com\/Jonathan.Bjorkskog","article_published_time":"2011-01-05T15:52:15+00:00","article_modified_time":"2011-09-15T12:56:24+00:00","og_image":[{"width":333,"height":500,"url":"https:\/\/jonathanbjorkskog.com\/wp-content\/uploads\/2011\/01\/Drupal_Man.jpg","type":"image\/jpeg"}],"author":"Jonathan","twitter_card":"summary_large_image","twitter_creator":"@https:\/\/twitter.com\/JonathanBJ","twitter_misc":{"Kirjoittanut":"Jonathan","Arvioitu lukuaika":"1 minuutti"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/jonathanbjorkskog.com\/hide-block-for-certain-content-type-in-drupal#article","isPartOf":{"@id":"https:\/\/jonathanbjorkskog.com\/hide-block-for-certain-content-type-in-drupal"},"author":{"name":"Jonathan","@id":"https:\/\/jonathanbjorkskog.com\/#\/schema\/person\/dc27f073951abad63af3a5988d59cad0"},"headline":"Hide block for certain content type in Drupal 6","datePublished":"2011-01-05T15:52:15+00:00","dateModified":"2011-09-15T12:56:24+00:00","mainEntityOfPage":{"@id":"https:\/\/jonathanbjorkskog.com\/hide-block-for-certain-content-type-in-drupal"},"wordCount":234,"commentCount":2,"publisher":{"@id":"https:\/\/jonathanbjorkskog.com\/#organization"},"image":{"@id":"https:\/\/jonathanbjorkskog.com\/hide-block-for-certain-content-type-in-drupal#primaryimage"},"thumbnailUrl":"https:\/\/jonathanbjorkskog.com\/wp-content\/uploads\/2011\/01\/Drupal_Man.jpg","articleSection":["Drupal"],"inLanguage":"fi","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/jonathanbjorkskog.com\/hide-block-for-certain-content-type-in-drupal#respond"]}]},{"@type":"WebPage","@id":"https:\/\/jonathanbjorkskog.com\/hide-block-for-certain-content-type-in-drupal","url":"https:\/\/jonathanbjorkskog.com\/hide-block-for-certain-content-type-in-drupal","name":"Piilota lohko tietylle sis\u00e4lt\u00f6tyypille Drupal 6:ssa - Jonathan Bj\u00f6rkskog","isPartOf":{"@id":"https:\/\/jonathanbjorkskog.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/jonathanbjorkskog.com\/hide-block-for-certain-content-type-in-drupal#primaryimage"},"image":{"@id":"https:\/\/jonathanbjorkskog.com\/hide-block-for-certain-content-type-in-drupal#primaryimage"},"thumbnailUrl":"https:\/\/jonathanbjorkskog.com\/wp-content\/uploads\/2011\/01\/Drupal_Man.jpg","datePublished":"2011-01-05T15:52:15+00:00","dateModified":"2011-09-15T12:56:24+00:00","description":"Voit halutessasi piilottaa lohkoja vain tietylle solmutyypille Drupalissa. K\u00e4yt\u00e4 t\u00e4t\u00e4 koodia lohkon piilottamiseen tietylle sis\u00e4lt\u00f6tyypille Drupalissa....","breadcrumb":{"@id":"https:\/\/jonathanbjorkskog.com\/hide-block-for-certain-content-type-in-drupal#breadcrumb"},"inLanguage":"fi","potentialAction":[{"@type":"ReadAction","target":["https:\/\/jonathanbjorkskog.com\/hide-block-for-certain-content-type-in-drupal"]}]},{"@type":"ImageObject","inLanguage":"fi","@id":"https:\/\/jonathanbjorkskog.com\/hide-block-for-certain-content-type-in-drupal#primaryimage","url":"https:\/\/jonathanbjorkskog.com\/wp-content\/uploads\/2011\/01\/Drupal_Man.jpg","contentUrl":"https:\/\/jonathanbjorkskog.com\/wp-content\/uploads\/2011\/01\/Drupal_Man.jpg","width":"333","height":"500","caption":"The Drupal Man shows how to hide block only for certain content type!"},{"@type":"BreadcrumbList","@id":"https:\/\/jonathanbjorkskog.com\/hide-block-for-certain-content-type-in-drupal#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/jonathanbjorkskog.com\/"},{"@type":"ListItem","position":2,"name":"Drupal","item":"https:\/\/jonathanbjorkskog.com\/category\/drupal"},{"@type":"ListItem","position":3,"name":"Hide block for certain content type in Drupal 6"}]},{"@type":"WebSite","@id":"https:\/\/jonathanbjorkskog.com\/#website","url":"https:\/\/jonathanbjorkskog.com\/","name":"Jonathan Bj\u00f6rkskog","description":"Kasvumarkkinointi vuodesta 2009","publisher":{"@id":"https:\/\/jonathanbjorkskog.com\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/jonathanbjorkskog.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"fi"},{"@type":"Organization","@id":"https:\/\/jonathanbjorkskog.com\/#organization","name":"Jonathan Bj\u00f6rkskog","url":"https:\/\/jonathanbjorkskog.com\/","logo":{"@type":"ImageObject","inLanguage":"fi","@id":"https:\/\/jonathanbjorkskog.com\/#\/schema\/logo\/image\/","url":"https:\/\/jonathanbjorkskog.com\/wp-content\/uploads\/2010\/06\/8330_154078676372_561696372_3193947_7420903_n.jpg","contentUrl":"https:\/\/jonathanbjorkskog.com\/wp-content\/uploads\/2010\/06\/8330_154078676372_561696372_3193947_7420903_n.jpg","width":"391","height":"401","caption":"Jonathan Bj\u00f6rkskog"},"image":{"@id":"https:\/\/jonathanbjorkskog.com\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/jonathanbjorkskog.com\/#\/schema\/person\/dc27f073951abad63af3a5988d59cad0","name":"Jonathan","image":{"@type":"ImageObject","inLanguage":"fi","@id":"https:\/\/secure.gravatar.com\/avatar\/639d9916e0b5fbdf8638629287dba1e9e01aa58ac3db092f0d436b15e176a751?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/639d9916e0b5fbdf8638629287dba1e9e01aa58ac3db092f0d436b15e176a751?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/639d9916e0b5fbdf8638629287dba1e9e01aa58ac3db092f0d436b15e176a751?s=96&d=mm&r=g","caption":"Jonathan"},"description":"Jonathan Bj\u00f6rkskog on suomalainen markkinoija \/ kasvuhakkeri, joka on ty\u00f6skennellyt kokop\u00e4iv\u00e4isesti markkinoinnin parissa suuryrityksille ja joillekin Pohjois-Euroopan suurimmista verkkokauppasivustoista. H\u00e4nell\u00e4 on intohimo orgaaniseen hakuun, sis\u00e4lt\u00f6\u00f6n ja kasvuun sek\u00e4 tausta tekniikassa ja koodauksessa, joten h\u00e4nell\u00e4 on laaja n\u00e4kemys verkkomarkkinoinnin strategioista ja taktiikoista. Yli 100 ty\u00f6ntekij\u00e4\u00e4 ty\u00f6llist\u00e4v\u00e4n viraston perustaminen auttaa my\u00f6s saamaan laajan yleiskuvan siit\u00e4, mit\u00e4 mik\u00e4 tahansa yritys voi tehd\u00e4 menesty\u00e4kseen verkossa.","sameAs":["https:\/\/jonathanbjorkskog.com\/","https:\/\/www.facebook.com\/Jonathan.Bjorkskog","https:\/\/www.instagram.com\/jonathanbjorkskog\/","https:\/\/www.linkedin.com\/in\/jonathanbjorkskog\/","https:\/\/x.com\/https:\/\/twitter.com\/JonathanBJ"]}]}},"uagb_featured_image_src":{"full":["https:\/\/jonathanbjorkskog.com\/wp-content\/uploads\/2011\/01\/Drupal_Man.jpg",333,500,false],"thumbnail":["https:\/\/jonathanbjorkskog.com\/wp-content\/uploads\/2011\/01\/Drupal_Man-150x150.jpg",150,150,true],"medium":["https:\/\/jonathanbjorkskog.com\/wp-content\/uploads\/2011\/01\/Drupal_Man-199x300.jpg",199,300,true],"medium_large":["https:\/\/jonathanbjorkskog.com\/wp-content\/uploads\/2011\/01\/Drupal_Man.jpg",333,500,false],"large":["https:\/\/jonathanbjorkskog.com\/wp-content\/uploads\/2011\/01\/Drupal_Man.jpg",333,500,false],"1536x1536":["https:\/\/jonathanbjorkskog.com\/wp-content\/uploads\/2011\/01\/Drupal_Man.jpg",333,500,false],"2048x2048":["https:\/\/jonathanbjorkskog.com\/wp-content\/uploads\/2011\/01\/Drupal_Man.jpg",333,500,false],"trp-custom-language-flag":["https:\/\/jonathanbjorkskog.com\/wp-content\/uploads\/2011\/01\/Drupal_Man.jpg",8,12,false],"ptam-block-post-grid-landscape":["https:\/\/jonathanbjorkskog.com\/wp-content\/uploads\/2011\/01\/Drupal_Man.jpg",266,400,false],"ptam-block-post-grid-square":["https:\/\/jonathanbjorkskog.com\/wp-content\/uploads\/2011\/01\/Drupal_Man.jpg",333,500,false],"ptam-block-post-grid-featured-landscape":["https:\/\/jonathanbjorkskog.com\/wp-content\/uploads\/2011\/01\/Drupal_Man.jpg",333,500,false],"wplb_square":["https:\/\/jonathanbjorkskog.com\/wp-content\/uploads\/2011\/01\/Drupal_Man.jpg",333,500,false],"web-stories-poster-portrait":["https:\/\/jonathanbjorkskog.com\/wp-content\/uploads\/2011\/01\/Drupal_Man.jpg",333,500,false],"web-stories-publisher-logo":["https:\/\/jonathanbjorkskog.com\/wp-content\/uploads\/2011\/01\/Drupal_Man.jpg",64,96,false],"web-stories-thumbnail":["https:\/\/jonathanbjorkskog.com\/wp-content\/uploads\/2011\/01\/Drupal_Man.jpg",150,225,false]},"uagb_author_info":{"display_name":"Jonathan","author_link":"https:\/\/jonathanbjorkskog.com\/fi\/author\/admin"},"uagb_comment_info":2,"uagb_excerpt":"Quite often you want to hide or show a block only for a specific content type in Drupal. There is a quite simple hack you can do for\u00a0achieving that!\u00a0This is for Drupal 6, in Drupal 7 there is a core function that lets you do the same.\u00a0Use this code to hide a block for a...","_links":{"self":[{"href":"https:\/\/jonathanbjorkskog.com\/fi\/wp-json\/wp\/v2\/posts\/372","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/jonathanbjorkskog.com\/fi\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/jonathanbjorkskog.com\/fi\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/jonathanbjorkskog.com\/fi\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/jonathanbjorkskog.com\/fi\/wp-json\/wp\/v2\/comments?post=372"}],"version-history":[{"count":5,"href":"https:\/\/jonathanbjorkskog.com\/fi\/wp-json\/wp\/v2\/posts\/372\/revisions"}],"predecessor-version":[{"id":763,"href":"https:\/\/jonathanbjorkskog.com\/fi\/wp-json\/wp\/v2\/posts\/372\/revisions\/763"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/jonathanbjorkskog.com\/fi\/wp-json\/wp\/v2\/media\/374"}],"wp:attachment":[{"href":"https:\/\/jonathanbjorkskog.com\/fi\/wp-json\/wp\/v2\/media?parent=372"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/jonathanbjorkskog.com\/fi\/wp-json\/wp\/v2\/categories?post=372"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/jonathanbjorkskog.com\/fi\/wp-json\/wp\/v2\/tags?post=372"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}