You could also create a template file for the node type where you want to display the view and manually render the View. Let's say your View is called 'myview' and your node type is called 'journal': in your theme directory, copy
node.tpl.php to node-journal.tpl.php and after the "print $body" in node-journal.tpl.php, add something like the following code -
<?php
$view = views_get_view('myview');
print views_build_view('embed', $view);
?>
Thank's for the info, I'm goin' to try it.
See youde Bill Fitzgerald
-----Mensaje original-----
De: support-bounces@drupal.org [mailto: support-bounces@drupal.org] En nombre
Enviado el: divendres, 14 / desembre / 2007 17:29__________ Informacisn de NOD32, revisisn 2727 (20071217) __________Para: support@drupal.org
Asunto: Re: [support] emmbed a view on the bottom of a node
You could also create a block with your view, and enable the block in any
region of your theme. You could use a php snippet to control the block
visibility so it only displays on nodes where it's relevant, and a views
argument to grab the nid of the current node.
This would eliminate the need for the viewfield module, and the view
selector.
Cheers,
Bill
Marolijo - Pol maresma wrote:
> Hello again!
> How can I hide the attached view selector on node edit?
> I don't wanna let user change it because I need it to be a fixed view
> with %nid as argument.
>
> Thank's for all!
>
>
> -----Mensaje original-----
> De: support-bounces@drupal.org [mailto: support-bounces@drupal.org] En
> nombre de Marolijo - Pol maresma Enviado el: dijous, 13 / desembre /
> 2007 11:15
> Para: support@drupal.org
> Asunto: Re: [support] emmbed a view on the bottom of a node
>
> Ok I see it appears as default to new nodes and I only need to correct
> the old ones.
>
> Thank's a lot!
>
> -----Mensaje original-----
> De: support-bounces@drupal.org [mailto:support-bounces@drupal.org] En
> nombre de Marolijo - Pol maresma Enviado el: dijous, 13 / desembre /
> 2007 11:00
> Para: support@drupal.org; z.stolar@gmail.com
> Asunto: Re: [support] emmbed a view on the bottom of a node
>
> Thank's! I have the viewfield working now!
> I wanna attach the same view to a specific content type, so I selected
> the view on the Content Type Manage Fields area, and passed the %nid
argument.
> But I still need to select the view on each node of this content type.
>
> How can I force it as default? I can't find the solution on the
> viewfield project page.
>
> Thank's again!
>
> -----Mensaje original-----
> De: support-bounces@drupal.org [mailto:support-bounces@drupal.org] En
> nombre de Zohar Stolar Enviado el: dijous, 13 / desembre / 2007 10:19
> Para: support@drupal.org
> Asunto: Re: [support] emmbed a view on the bottom of a node
>
> Two modules may assist you:
>
> http://drupal.org/project/insert_view
>
> http://drupal.org/project/viewfield
>
>
>
> Marolijo - Pol maresma wrote:
>
>
>> Hello, I have a view wich show a list of nodes (B) related to another
>> node (A).
>> I need to show B under A. How can I do it? I tried panels without luck.
>>
>> Thank's for all!
>>
>>
>> Pol Maresma / pol@polnetwork.com <mailto:pol@polnetwork.com>
>> PolNetwork.com / Serveis d'Internet
>> msn: marolijo
>>
>>
> --
> [ Drupal support list | http://lists.drupal.org/ ]
>
> __________ Informacisn de NOD32, revisisn 2720 (20071212) __________
>
> Este mensaje ha sido analizado con NOD32 antivirus system
> http://www.nod32.com
>
>
> --
> [ Drupal support list | http://lists.drupal.org/ ]
>
> __________ Informacisn de NOD32, revisisn 2720 (20071212) __________
>
> Este mensaje ha sido analizado con NOD32 antivirus system
> http://www.nod32.com
>
>
> --
> [ Drupal support list | http://lists.drupal.org/ ]
>
> __________ Informacisn de NOD32, revisisn 2720 (20071212) __________
>
> Este mensaje ha sido analizado con NOD32 antivirus system
> http://www.nod32.com
>
>
>
--
Bill Fitzgerald
http://www.funnymonkey.com
Tools for Teachers
503.897.7160
--
[ Drupal support list | http://lists.drupal.org/ ]
Este mensaje ha sido analizado con NOD32 antivirus system
http://www.nod32.com
--
[ Drupal support list | http://lists.drupal.org/ ]