By davecoventry on
I've set up my view.
How do I call it up?
I've set up my arguments as follows:
$node=node_load(arg(1));
if($node){
foreach($node->taxonomy as $term){$terms[]=$terms->tid;}
return implode('+',$terms);
}
else {return;}according to this tutorial: http://drupaleasy.com/blogs/ryanprice/2008/06/using-views-2-drupal-6-cre...
How do I now call up the view?
Can it be written as an HREF so that if the user clicks a link it will show?
Or should I use Filters for that?
Comments
If you want your view to show
If you want your view to show up, you have a couple of options.
You can embed the view in a block using either PHP or the "Insert View" module.
You can create a page display on the View and give it a custom URL path (http://example.com/path/to/your/view)
Add a page display, give it
Add a page display, give it a path and optionally a menu entry.
Great, thanks for the replies!
I'm not sure I understand the logic in the PHP code I wrote:
How do I pass the value of $term to the Arguments code?
And can I call it from another block? In the side panel for instance?