How can i call block inside a page?

Any idea please replay me as soon as possible!

Thanks

Comments

Anandyrh’s picture

Any idea?

Yuki’s picture

write the node id inside the configure option of block...below tou will see txt box...
In either wat how can I call page insdie block?any body knows?

Anandyrh’s picture

Hi,
Thanks for quick replay,
Yeah knew this But i am using Acquia marina Theme here i don't have a region called Content
So i am trying to use PHP code in a pirticular page where i need one block to be visible inside a content part
Note: this block is not created using Views.

Regards,
Anand

yasir farooqui’s picture

This can be achieved with something like this:

$blockView = module_invoke(<module name>, 'block', 'view', <delta>);
print($blockView['content']);

module name: is the name of the module that provides the block that you are going to print
delta: hope you would know what is delta, this is a numeric id of any block

Note that if you have manually created a block under blocks in drupal, then you will write some thing like this :

$blockView = module_invoke('block', 'block', 'view', <delta>);
print($blockView['content']);

Here I have replaced 'module name' by 'block'.

This should help you...

Anandyrh’s picture

Hi all thank you very much for replaying to my topic,

I had fixed my problem by creating another region in side content region and assigned block to that region.

Thanks & Regards,
AnAnd