By mak dara on
Hellooo
I have one view that have many arguments(example: view1/2001, view1/2002, view1/2003 ...) and i want to embed this view with page/node, How can i embed it? if view don't have argument i can do like this
$view_name = 'view1'; //name of view
//$limit = 1; // number of returns
$view_args = array();
$view = views_get_view($view_name);
print views_build_view('embed', $view, $view_args, FALSE);
but view have argument, i don't know how to do it.
Please share me !!!!!!!!
I hope get back from u.
Dara
Comments
I had the same need. Make it
I had the same need.
Make it easy on yourself. Forget PHP, and use the Insert View module. It is a filter, so you have to go to the filter administration page to set it up, but it makes adding views, even those requiring arguments, a breeze.
- Corey
Ok thank
Ok thank you for your experience. I will do it, if it doesn't work. I ask you againt
Dara