[support] How to insert a view into my page

Thomas G. Willis tom.willis at gmail.com
Sat Feb 16 15:08:43 UTC 2008


On Feb 16, 2008 8:56 AM, Davide Michel 'ZioBudda' Morelli <
michel at ziobudda.net> wrote:

> Hi all. I need to create a page where the content is get from a view,
> but to the same content I need to add other information (categories,
> uid, and other).
> Where I can find a RTFM that say me how to get the result of a view and
> work on it ?
>
> Tnx.
>
> --
> Michel 'ZioBudda' Morelli                       michel at ziobudda.net
> Consulenza sistemistica in ambito OpenSource.
> Sviluppo applicazioni web dinamiche (LAMP+Ajax)
> Telefono: 0200619074
> Telefono Cell: +39-3939890025 --  Fax: +39-0291390660
>
> http://www.ziobudda.net                         ICQ: 58351764
> http://www.ziobuddalabs.it                      Skype: zio_budda
> http://www.ajaxblog.it                          MSN:
> michel at ziobuddalabs.it
>                                                JABBER: michel at gmail.com
>
> --
> [ Drupal support list | http://lists.drupal.org/ ]
>


I had to do something similar last night, perhaps this will put you in the
right direction. I'm probably not doing it completely right.

Check this page out too.
http://drupal.org/node/48816


<?php
$view = views_get_view("articles");

$nodes[] = views_build_view('embed',$view,array(),false,0);


print "<h1>Articles</h1>";
foreach($nodes as $node)
{
   print $node;
}
?>

-- 
Thomas G. Willis
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.drupal.org/pipermail/support/attachments/20080216/3e3da282/attachment.htm 


More information about the support mailing list