mediatribe.net - Views http://mediatribe.net/fr/taxonomy/term/6/0 fr Displaying a block with a field from the current node using Views 2 and Drupal 6 http://mediatribe.net/fr/node/21 <p>I have a CCK field with an image on my page nodes. I want to display a block with the CCK field value on its related node, but nothing on non-pages.</p> <p>This often works in the views preview, but not on the actual page. This was driving me nuts and I spent a few hours finding this solution:</p> <p>Create view with</p> <ul> <li>Filter: node nid &gt; 0</li> <li>Argument: node nid, Action to take if argument is not present: Provide default argument: node nid from URL; validator: basic. Action to take if does not validate: Hide view</li> <li>Create a new block display and you're done!</li> </ul> http://mediatribe.net/fr/node/21#comments Drupal Views Mon, 08 Mar 2010 19:45:49 +0000 Albert 21 at http://mediatribe.net