<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
<title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
<pre>><i> a) Add a view to the content of a node
</i>
Have a look at the component module's component_get_view() function.
Don't actually use component, but you can grab the few lines of code you need from it.
Thank you. I looked at the code. I see how to use it as a link from the node (using
the hook_menu example in the code). But, I don't see how to actually have the automatcially
view come up when the event node is viewed.
Or, since I've finally figured out how to list the items using hook_nodeapi($op='view'), would you
suggest I simply do this:
$view = mymodule_get_view($viewname);
$node->content['agenda'] = array(
'#value' => $view,
'#weight' => 10,
);
Thanks so much for all the help!
-ron</pre>
<pre class="moz-signature" cols="72">-
Ron Parker
Software Creations <a class="moz-txt-link-freetext" href="http://www.scbbs.com">http://www.scbbs.com</a>
Self-Administration Web Site <a class="moz-txt-link-freetext" href="http://saw.scbbs.com">http://saw.scbbs.com</a>
SDSS Subscription Mgmt Service <a class="moz-txt-link-freetext" href="http://sdss.scbbs.com">http://sdss.scbbs.com</a>
Central Ave Dance Ensemble <a class="moz-txt-link-freetext" href="http://www.centralavedance.com">http://www.centralavedance.com</a>
R & B Salsa <a class="moz-txt-link-freetext" href="http://www.randbsalsa.com">http://www.randbsalsa.com</a>
</pre>
</body>
</html>