{"id":58,"date":"2009-01-19T15:01:18","date_gmt":"2009-01-19T14:01:18","guid":{"rendered":"https:\/\/ridgesolutions.ie\/?p=58"},"modified":"2010-03-31T13:44:42","modified_gmt":"2010-03-31T12:44:42","slug":"passing-an-argument-to-a-block-view-in-drupal-6","status":"publish","type":"post","link":"https:\/\/www.ridgesolutions.ie\/index.php\/2009\/01\/19\/passing-an-argument-to-a-block-view-in-drupal-6\/","title":{"rendered":"Passing an argument to a Block View in Drupal 6"},"content":{"rendered":"<p style=\"padding-left: 30px; text-align: left;\"><strong>Q<\/strong>: How can I pass an argument to a &#8216;block view&#8217; in Drupal 6?<\/p>\n<p style=\"padding-left: 30px;\"><strong>A<\/strong>: There is no way to pass an argument to a block view in Drupal 6, but don&#8217;t panic as\u00a0there is a way to achieve the same result through some slight-of-hand.<\/p>\n<p>The use of arguments with Drupal <a href=\"http:\/\/drupal.org\/project\/views\">views<\/a> are vital for getting the most out of the views functionality. How are the arguments normal passed to a view?\u00a0 Well, if a view is configured to produce a page then the arguments are easily passed as part of the requesting URL,\u00a0 while if\u00a0a view is embedded using code, then the arguments are passed\u00a0in as part of the call to embed the view.\u00a0 But if a view is configured to produce a block, how do you pass arguments to it?\u00a0 The bad news is\u00a0you can&#8217;t &#8211;\u00a0the good news is that there is a way fake it and achieve the same result.<\/p>\n<p>The trick involves providing a PHP handler\u00a0within the view which will be called when the view is invoked\u00a0without an expected argument (this is what happens when the block is displayed!).\u00a0 We just arrange for this handler to retrieve and return the argument&#8217;s value and then the view will behave as required &#8211; just as if the argument had been passed to it in the first place.<\/p>\n<p>To do this create the block view as normal and configure the required argument(s).\u00a0 For each argument we choose the &#8216;Provide default argument&#8217; option, and select the &#8216;PHP code&#8217; sub-option.\u00a0 We then provide some PHP code which will &#8216;get&#8217; and return the argument&#8217;s value, it doesn&#8217;t really matter where or how the PHP code\u00a0gets the argument once it returns the correct value.\u00a0\u00a0 Have a look at screen shot below:<\/p>\n<p><img decoding=\"async\" class=\"alignnone\" src=\"https:\/\/ridgesolutions.ie\/wp-content\/uploads\/images\/default_arg.png\" alt=\"Adding a default parameter\" \/><\/p>\n<p>The example above is a\u00a0bit simplistic as the PHP code just returns a static value &#8211; not very useful at all!\u00a0\u00a0A more realistic or useful example\u00a0 (inspired by\u00a0one of the posts referenced below) would be to return the argument that was passed to the page that contains and displays the block.\u00a0 Consider the mythical paths:<\/p>\n<pre>www.somedomain.com\/content\/projects\/web-design<\/pre>\n<p>and<\/p>\n<pre>www.somedomain.com\/content\/projects\/illustration<\/pre>\n<p>Here things are set-up so that &#8216;web-design&#8217; and &#8216;illustration&#8217;\u00a0are arguments to the\u00a0&#8216;projects&#8217; page, they result in only the projects of that type being displayed. \u00a0 Assuming we are using the <a href=\"http:\/\/drupal.org\/project\/pathauto\">pathauto<\/a> module for nice clean URLs (as we almost always are!) then the following PHP code\u00a0when provided as the default argument handler will get the URL, parse\u00a0it and return the argument part to the view.<\/p>\n<pre>[code lang=\"php\"]\r\n$path = drupal_get_path_alias($_GET[\"q\"]); \/\/get URL alias\r\n$path = explode(\"\/\", $path); \/\/break path into an array\r\nif ($path[0] == \"projects\" &amp;&amp; $path[1] != \"\")\r\n{\r\n  return $path[1];\r\n} [\/code]<\/pre>\n<p>So there is is, it&#8217;s definitely not the easiest method in the world but at least it does provide a mechanism of getting those arguments to the view&#8230;<\/p>\n<p>Sources: <a href=\"http:\/\/drupalsn.com\/learn-drupal\/drupal-questions\/question-2650\">http:\/\/drupalsn.com\/learn-drupal\/drupal-questions\/question-2650<\/a>, <a href=\"http:\/\/drupal.org\/node\/332521\">http:\/\/drupal.org\/node\/332521<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Q: How can I pass an argument to a &#8216;block view&#8217; in Drupal 6? A: There is no way to pass an argument to a block view in Drupal 6, but don&#8217;t panic as\u00a0there is a way to achieve the same result through some slight-of-hand. The use of arguments with Drupal views are vital for [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[48,21,49,17,47],"class_list":["post-58","post","type-post","status-publish","format-standard","hentry","category-tech-stuff","tag-argument","tag-drupal","tag-pathauto","tag-php","tag-views"],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 5.0.0.1 - aioseo.com -->\n\t<meta name=\"description\" content=\"Q: How can I pass an argument to a &#039;block view&#039; in Drupal 6? A: There is no way to pass an argument to a block view in Drupal 6, but don&#039;t panic as there is a way to achieve the same result through some slight-of-hand. The use of arguments with Drupal views are vital for\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<meta name=\"author\" content=\"Kevin Godden\"\/>\n\t<meta name=\"google-site-verification\" content=\"Kyj52YLp6GOPA44PVBffo9fjW8rgWHYYRF0ZYjfy6ss\" \/>\n\t<link rel=\"canonical\" href=\"https:\/\/www.ridgesolutions.ie\/index.php\/2009\/01\/19\/passing-an-argument-to-a-block-view-in-drupal-6\/\" \/>\n\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 5.0.0.1\" \/>\n\t\t<meta property=\"og:locale\" content=\"en_US\" \/>\n\t\t<meta property=\"og:site_name\" content=\"Systems and Embedded Software Engineering, Ireland. | Some thoughts of a busy Computer Engineer\" \/>\n\t\t<meta property=\"og:type\" content=\"article\" \/>\n\t\t<meta property=\"og:title\" content=\"Passing an argument to a Block View in Drupal 6\" \/>\n\t\t<meta property=\"og:description\" content=\"Q: How can I pass an argument to a &#039;block view&#039; in Drupal 6? A: There is no way to pass an argument to a block view in Drupal 6, but don&#039;t panic as there is a way to achieve the same result through some slight-of-hand. The use of arguments with Drupal views are vital for\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/www.ridgesolutions.ie\/index.php\/2009\/01\/19\/passing-an-argument-to-a-block-view-in-drupal-6\/\" \/>\n\t\t<meta property=\"article:published_time\" content=\"2009-01-19T14:01:18+00:00\" \/>\n\t\t<meta property=\"article:modified_time\" content=\"2010-03-31T12:44:42+00:00\" \/>\n\t\t<meta name=\"twitter:card\" content=\"summary\" \/>\n\t\t<meta name=\"twitter:title\" content=\"Passing an argument to a Block View in Drupal 6\" \/>\n\t\t<meta name=\"twitter:description\" content=\"Q: How can I pass an argument to a &#039;block view&#039; in Drupal 6? A: There is no way to pass an argument to a block view in Drupal 6, but don&#039;t panic as there is a way to achieve the same result through some slight-of-hand. The use of arguments with Drupal views are vital for\" \/>\n\t\t<script type=\"application\/ld+json\" class=\"aioseo-schema\">\n\t\t\t{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.ridgesolutions.ie\\\/index.php\\\/2009\\\/01\\\/19\\\/passing-an-argument-to-a-block-view-in-drupal-6\\\/#article\",\"name\":\"Passing an argument to a Block View in Drupal 6\",\"headline\":\"Passing an argument to a Block View in Drupal 6\",\"author\":{\"@id\":\"https:\\\/\\\/www.ridgesolutions.ie\\\/index.php\\\/author\\\/kgodden\\\/#author\"},\"publisher\":{\"@id\":\"https:\\\/\\\/www.ridgesolutions.ie\\\/#organization\"},\"image\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/ridgesolutions.ie\\\/wp-content\\\/uploads\\\/images\\\/default_arg.png\",\"@id\":\"https:\\\/\\\/www.ridgesolutions.ie\\\/index.php\\\/2009\\\/01\\\/19\\\/passing-an-argument-to-a-block-view-in-drupal-6\\\/#articleImage\"},\"datePublished\":\"2009-01-19T15:01:18+00:00\",\"dateModified\":\"2010-03-31T13:44:42+00:00\",\"inLanguage\":\"en-US\",\"commentCount\":23,\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.ridgesolutions.ie\\\/index.php\\\/2009\\\/01\\\/19\\\/passing-an-argument-to-a-block-view-in-drupal-6\\\/#webpage\"},\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.ridgesolutions.ie\\\/index.php\\\/2009\\\/01\\\/19\\\/passing-an-argument-to-a-block-view-in-drupal-6\\\/#webpage\"},\"articleSection\":\"Tech Stuff, argument, Drupal, pathauto, PHP, views\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.ridgesolutions.ie\\\/index.php\\\/2009\\\/01\\\/19\\\/passing-an-argument-to-a-block-view-in-drupal-6\\\/#breadcrumblist\",\"itemListElement\":[{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.ridgesolutions.ie#listItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.ridgesolutions.ie\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.ridgesolutions.ie\\\/index.php\\\/category\\\/tech-stuff\\\/#listItem\",\"name\":\"Tech Stuff\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.ridgesolutions.ie\\\/index.php\\\/category\\\/tech-stuff\\\/#listItem\",\"position\":2,\"name\":\"Tech Stuff\",\"item\":\"https:\\\/\\\/www.ridgesolutions.ie\\\/index.php\\\/category\\\/tech-stuff\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.ridgesolutions.ie\\\/index.php\\\/2009\\\/01\\\/19\\\/passing-an-argument-to-a-block-view-in-drupal-6\\\/#listItem\",\"name\":\"Passing an argument to a Block View in Drupal 6\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.ridgesolutions.ie#listItem\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.ridgesolutions.ie\\\/index.php\\\/2009\\\/01\\\/19\\\/passing-an-argument-to-a-block-view-in-drupal-6\\\/#listItem\",\"position\":3,\"name\":\"Passing an argument to a Block View in Drupal 6\",\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.ridgesolutions.ie\\\/index.php\\\/category\\\/tech-stuff\\\/#listItem\",\"name\":\"Tech Stuff\"}}]},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.ridgesolutions.ie\\\/#organization\",\"name\":\"Ridge Solutions, Software Development and Software Engineering, Ireland.\",\"description\":\"Some thoughts of a busy Computer Engineer\",\"url\":\"https:\\\/\\\/www.ridgesolutions.ie\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/www.ridgesolutions.ie\\\/wp-content\\\/uploads\\\/2013\\\/09\\\/ridge_logo1.jpg\",\"@id\":\"https:\\\/\\\/www.ridgesolutions.ie\\\/index.php\\\/2009\\\/01\\\/19\\\/passing-an-argument-to-a-block-view-in-drupal-6\\\/#organizationLogo\",\"width\":400,\"height\":81},\"image\":{\"@id\":\"https:\\\/\\\/www.ridgesolutions.ie\\\/index.php\\\/2009\\\/01\\\/19\\\/passing-an-argument-to-a-block-view-in-drupal-6\\\/#organizationLogo\"}},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.ridgesolutions.ie\\\/index.php\\\/author\\\/kgodden\\\/#author\",\"url\":\"https:\\\/\\\/www.ridgesolutions.ie\\\/index.php\\\/author\\\/kgodden\\\/\",\"name\":\"Kevin Godden\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\\\/\\\/www.ridgesolutions.ie\\\/index.php\\\/2009\\\/01\\\/19\\\/passing-an-argument-to-a-block-view-in-drupal-6\\\/#authorImage\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/d2833f41e59a25cf2a9741a05ec383bfdd278762a5e0798a90940e7ab0a107a2?s=96&d=mm&r=g\",\"width\":96,\"height\":96,\"caption\":\"Kevin Godden\"}},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.ridgesolutions.ie\\\/index.php\\\/2009\\\/01\\\/19\\\/passing-an-argument-to-a-block-view-in-drupal-6\\\/#webpage\",\"url\":\"https:\\\/\\\/www.ridgesolutions.ie\\\/index.php\\\/2009\\\/01\\\/19\\\/passing-an-argument-to-a-block-view-in-drupal-6\\\/\",\"name\":\"Passing an argument to a Block View in Drupal 6\",\"description\":\"Q: How can I pass an argument to a 'block view' in Drupal 6? A: There is no way to pass an argument to a block view in Drupal 6, but don't panic as there is a way to achieve the same result through some slight-of-hand. The use of arguments with Drupal views are vital for\",\"inLanguage\":\"en-US\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.ridgesolutions.ie\\\/#website\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.ridgesolutions.ie\\\/index.php\\\/2009\\\/01\\\/19\\\/passing-an-argument-to-a-block-view-in-drupal-6\\\/#breadcrumblist\"},\"author\":{\"@id\":\"https:\\\/\\\/www.ridgesolutions.ie\\\/index.php\\\/author\\\/kgodden\\\/#author\"},\"creator\":{\"@id\":\"https:\\\/\\\/www.ridgesolutions.ie\\\/index.php\\\/author\\\/kgodden\\\/#author\"},\"datePublished\":\"2009-01-19T15:01:18+00:00\",\"dateModified\":\"2010-03-31T13:44:42+00:00\"},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.ridgesolutions.ie\\\/#website\",\"url\":\"https:\\\/\\\/www.ridgesolutions.ie\\\/\",\"name\":\"Ridge Solutions, Software Development and Software Engineering, Ireland.\",\"description\":\"Some thoughts of a busy Computer Engineer\",\"inLanguage\":\"en-US\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.ridgesolutions.ie\\\/#organization\"}}]}\n\t\t<\/script>\n\t\t<!-- All in One SEO -->\n\n","aioseo_head_json":{"title":"Passing an argument to a Block View in Drupal 6","description":"Q: How can I pass an argument to a 'block view' in Drupal 6? A: There is no way to pass an argument to a block view in Drupal 6, but don't panic as there is a way to achieve the same result through some slight-of-hand. The use of arguments with Drupal views are vital for","canonical_url":"https:\/\/www.ridgesolutions.ie\/index.php\/2009\/01\/19\/passing-an-argument-to-a-block-view-in-drupal-6\/","robots":"max-image-preview:large","keywords":"","webmasterTools":{"google-site-verification":"Kyj52YLp6GOPA44PVBffo9fjW8rgWHYYRF0ZYjfy6ss","miscellaneous":""},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.ridgesolutions.ie\/index.php\/2009\/01\/19\/passing-an-argument-to-a-block-view-in-drupal-6\/#article","name":"Passing an argument to a Block View in Drupal 6","headline":"Passing an argument to a Block View in Drupal 6","author":{"@id":"https:\/\/www.ridgesolutions.ie\/index.php\/author\/kgodden\/#author"},"publisher":{"@id":"https:\/\/www.ridgesolutions.ie\/#organization"},"image":{"@type":"ImageObject","url":"https:\/\/ridgesolutions.ie\/wp-content\/uploads\/images\/default_arg.png","@id":"https:\/\/www.ridgesolutions.ie\/index.php\/2009\/01\/19\/passing-an-argument-to-a-block-view-in-drupal-6\/#articleImage"},"datePublished":"2009-01-19T15:01:18+00:00","dateModified":"2010-03-31T13:44:42+00:00","inLanguage":"en-US","commentCount":23,"mainEntityOfPage":{"@id":"https:\/\/www.ridgesolutions.ie\/index.php\/2009\/01\/19\/passing-an-argument-to-a-block-view-in-drupal-6\/#webpage"},"isPartOf":{"@id":"https:\/\/www.ridgesolutions.ie\/index.php\/2009\/01\/19\/passing-an-argument-to-a-block-view-in-drupal-6\/#webpage"},"articleSection":"Tech Stuff, argument, Drupal, pathauto, PHP, views"},{"@type":"BreadcrumbList","@id":"https:\/\/www.ridgesolutions.ie\/index.php\/2009\/01\/19\/passing-an-argument-to-a-block-view-in-drupal-6\/#breadcrumblist","itemListElement":[{"@type":"ListItem","@id":"https:\/\/www.ridgesolutions.ie#listItem","position":1,"name":"Home","item":"https:\/\/www.ridgesolutions.ie","nextItem":{"@type":"ListItem","@id":"https:\/\/www.ridgesolutions.ie\/index.php\/category\/tech-stuff\/#listItem","name":"Tech Stuff"}},{"@type":"ListItem","@id":"https:\/\/www.ridgesolutions.ie\/index.php\/category\/tech-stuff\/#listItem","position":2,"name":"Tech Stuff","item":"https:\/\/www.ridgesolutions.ie\/index.php\/category\/tech-stuff\/","nextItem":{"@type":"ListItem","@id":"https:\/\/www.ridgesolutions.ie\/index.php\/2009\/01\/19\/passing-an-argument-to-a-block-view-in-drupal-6\/#listItem","name":"Passing an argument to a Block View in Drupal 6"},"previousItem":{"@type":"ListItem","@id":"https:\/\/www.ridgesolutions.ie#listItem","name":"Home"}},{"@type":"ListItem","@id":"https:\/\/www.ridgesolutions.ie\/index.php\/2009\/01\/19\/passing-an-argument-to-a-block-view-in-drupal-6\/#listItem","position":3,"name":"Passing an argument to a Block View in Drupal 6","previousItem":{"@type":"ListItem","@id":"https:\/\/www.ridgesolutions.ie\/index.php\/category\/tech-stuff\/#listItem","name":"Tech Stuff"}}]},{"@type":"Organization","@id":"https:\/\/www.ridgesolutions.ie\/#organization","name":"Ridge Solutions, Software Development and Software Engineering, Ireland.","description":"Some thoughts of a busy Computer Engineer","url":"https:\/\/www.ridgesolutions.ie\/","logo":{"@type":"ImageObject","url":"https:\/\/www.ridgesolutions.ie\/wp-content\/uploads\/2013\/09\/ridge_logo1.jpg","@id":"https:\/\/www.ridgesolutions.ie\/index.php\/2009\/01\/19\/passing-an-argument-to-a-block-view-in-drupal-6\/#organizationLogo","width":400,"height":81},"image":{"@id":"https:\/\/www.ridgesolutions.ie\/index.php\/2009\/01\/19\/passing-an-argument-to-a-block-view-in-drupal-6\/#organizationLogo"}},{"@type":"Person","@id":"https:\/\/www.ridgesolutions.ie\/index.php\/author\/kgodden\/#author","url":"https:\/\/www.ridgesolutions.ie\/index.php\/author\/kgodden\/","name":"Kevin Godden","image":{"@type":"ImageObject","@id":"https:\/\/www.ridgesolutions.ie\/index.php\/2009\/01\/19\/passing-an-argument-to-a-block-view-in-drupal-6\/#authorImage","url":"https:\/\/secure.gravatar.com\/avatar\/d2833f41e59a25cf2a9741a05ec383bfdd278762a5e0798a90940e7ab0a107a2?s=96&d=mm&r=g","width":96,"height":96,"caption":"Kevin Godden"}},{"@type":"WebPage","@id":"https:\/\/www.ridgesolutions.ie\/index.php\/2009\/01\/19\/passing-an-argument-to-a-block-view-in-drupal-6\/#webpage","url":"https:\/\/www.ridgesolutions.ie\/index.php\/2009\/01\/19\/passing-an-argument-to-a-block-view-in-drupal-6\/","name":"Passing an argument to a Block View in Drupal 6","description":"Q: How can I pass an argument to a 'block view' in Drupal 6? A: There is no way to pass an argument to a block view in Drupal 6, but don't panic as there is a way to achieve the same result through some slight-of-hand. The use of arguments with Drupal views are vital for","inLanguage":"en-US","isPartOf":{"@id":"https:\/\/www.ridgesolutions.ie\/#website"},"breadcrumb":{"@id":"https:\/\/www.ridgesolutions.ie\/index.php\/2009\/01\/19\/passing-an-argument-to-a-block-view-in-drupal-6\/#breadcrumblist"},"author":{"@id":"https:\/\/www.ridgesolutions.ie\/index.php\/author\/kgodden\/#author"},"creator":{"@id":"https:\/\/www.ridgesolutions.ie\/index.php\/author\/kgodden\/#author"},"datePublished":"2009-01-19T15:01:18+00:00","dateModified":"2010-03-31T13:44:42+00:00"},{"@type":"WebSite","@id":"https:\/\/www.ridgesolutions.ie\/#website","url":"https:\/\/www.ridgesolutions.ie\/","name":"Ridge Solutions, Software Development and Software Engineering, Ireland.","description":"Some thoughts of a busy Computer Engineer","inLanguage":"en-US","publisher":{"@id":"https:\/\/www.ridgesolutions.ie\/#organization"}}]},"og:locale":"en_US","og:site_name":"Systems and Embedded Software Engineering, Ireland. | Some thoughts of a busy Computer Engineer","og:type":"article","og:title":"Passing an argument to a Block View in Drupal 6","og:description":"Q: How can I pass an argument to a 'block view' in Drupal 6? A: There is no way to pass an argument to a block view in Drupal 6, but don't panic as there is a way to achieve the same result through some slight-of-hand. The use of arguments with Drupal views are vital for","og:url":"https:\/\/www.ridgesolutions.ie\/index.php\/2009\/01\/19\/passing-an-argument-to-a-block-view-in-drupal-6\/","article:published_time":"2009-01-19T14:01:18+00:00","article:modified_time":"2010-03-31T12:44:42+00:00","twitter:card":"summary","twitter:title":"Passing an argument to a Block View in Drupal 6","twitter:description":"Q: How can I pass an argument to a 'block view' in Drupal 6? A: There is no way to pass an argument to a block view in Drupal 6, but don't panic as there is a way to achieve the same result through some slight-of-hand. The use of arguments with Drupal views are vital for"},"aioseo_meta_data":{"post_id":"58","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":"Article","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,"breadcrumb_settings":null,"limit_modified_date":false,"ai":null,"created":"2021-09-13 21:22:41","updated":"2025-07-15 20:27:40","seo_analyzer_scan_date":null,"focus_keyword":null,"additional_keywords":null,"truseo_locale":null},"aioseo_breadcrumb":"<div class=\"aioseo-breadcrumbs\"><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/www.ridgesolutions.ie\" 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:\/\/www.ridgesolutions.ie\/index.php\/category\/tech-stuff\/\" title=\"Tech Stuff\">Tech Stuff<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\tPassing an argument to a Block View in Drupal 6\n\t\t<\/span><\/div>","aioseo_breadcrumb_json":[{"label":"Home","link":"https:\/\/www.ridgesolutions.ie"},{"label":"Tech Stuff","link":"https:\/\/www.ridgesolutions.ie\/index.php\/category\/tech-stuff\/"},{"label":"Passing an argument to a Block View in Drupal 6","link":"https:\/\/www.ridgesolutions.ie\/index.php\/2009\/01\/19\/passing-an-argument-to-a-block-view-in-drupal-6\/"}],"_links":{"self":[{"href":"https:\/\/www.ridgesolutions.ie\/index.php\/wp-json\/wp\/v2\/posts\/58","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.ridgesolutions.ie\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.ridgesolutions.ie\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.ridgesolutions.ie\/index.php\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.ridgesolutions.ie\/index.php\/wp-json\/wp\/v2\/comments?post=58"}],"version-history":[{"count":0,"href":"https:\/\/www.ridgesolutions.ie\/index.php\/wp-json\/wp\/v2\/posts\/58\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.ridgesolutions.ie\/index.php\/wp-json\/wp\/v2\/media?parent=58"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.ridgesolutions.ie\/index.php\/wp-json\/wp\/v2\/categories?post=58"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.ridgesolutions.ie\/index.php\/wp-json\/wp\/v2\/tags?post=58"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}