[support] Inserting block into a page.

KOBA | Hans Rossel info at koba.be
Tue Jul 1 11:54:18 UTC 2008


You can embed your view:

<?php
     $view = views_get_view('LatestVideosBlock');
    print views_build_view('block', $view, array(), false, false);
?>

Hans
www.koba.be


2008/7/1 Neil: esl-lounge.com <neil at esl-lounge.com>:

>  I have found code to allow me to insert a block into a page:
>
> <?php
> $block = module_invoke('tagadelic', 'block', 'view', 6);
> print $block['content'];
> ?>
>
> But I have a block I made in views which I don't know the number of. When I
> hover over Configur in the block admin, I just see this:
>
> http://www.mysite.com/admin/build/block/configure/views/LatestVideosBlock
>
> How would I insert this into another node? (Before anyone mentions it, I
> don't want to use another module)
>
> thanks
>
> Neil
>
> --
> [ Drupal support list | http://lists.drupal.org/ ]
>



-- 
Hans Rossel
KOBA Webdevelopment
Kerkstraat 228
9050 Gent
09-334.52.60
0472-79.32.16
www.koba.be
info at koba.be
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.drupal.org/pipermail/support/attachments/20080701/c20aa87e/attachment.htm 


More information about the support mailing list