By justindong on
I have created some views and I know that you can use this code to embed a view:
$view = views_get_view('view_name');
My question is how to embed many views into one page.
Can I do this:
| $view = views_get_view('view_name'); |
| $view = views_get_view('view_name'); |
thanks in advance.
Comments
Yes
Fetching the view object doesn't display it. Depending on 5.x or 6.x, the function you invoke on that $view object is different.
5.x:
6.x:
___________________
3281d Consulting
Or, use viewfield
Or, you can use http://drupal.org/project/viewfield to embed views as CCK fields on your story nodes. There are a bunch of ways to do this...
___________________
3281d Consulting