Hello,
I'm running Drupal 6.2 and I have a question.
Is it possible to add a block into a content element? I want to create a page that includes a block I've created, but I want it in the content area of the page.
Yes. You can define a region in your theme, into which you place the block. Many themes by default will place blocks placed into the "content" region below the node. Look at the handbooks on phptemplate themes discussion on regions. Defining them is *really* easy in Drupal 6.
An alternative approach would be to use php within the node's content (using the input form and the php parser input setting) to print the block.
Laura
On Jun 19, 2008, at 12:45 PM, Jody Cleveland wrote:
Hello,
I'm running Drupal 6.2 and I have a question.
Is it possible to add a block into a content element? I want to create a page that includes a block I've created, but I want it in the content area of the page.
-- Jody Cleveland
-- [ Drupal support list | http://lists.drupal.org/ ]
I'm only going to be having this on one page, and was hoping to control exactly where it goes using php code. But, I wasn't able to find anything on how to do that.
- jody
On 6/19/08 3:57 PM, "Laura Scott" pinglaura@gmail.com wrote:
Yes. You can define a region in your theme, into which you place the block. Many themes by default will place blocks placed into the "content" region below the node. Look at the handbooks on phptemplate themes discussion on regions. Defining them is *really* easy in Drupal 6.
An alternative approach would be to use php within the node's content (using the input form and the php parser input setting) to print the block.
Laura
On Jun 19, 2008, at 12:45 PM, Jody Cleveland wrote:
Hello,
I'm running Drupal 6.2 and I have a question.
Is it possible to add a block into a content element? I want to create a page that includes a block I've created, but I want it in the content area of the page.
-- Jody Cleveland
-- [ Drupal support list | http://lists.drupal.org/ ]
There used to be a http://drupal.org/project/insert_block module but it has not been upgraded to Drupal 6
I also recall a technique for creating "floater" theme regions in the content, at least for Drupal 5 (http://drupal.org/node/29139)
But if it is only for one page, does it need to be a block? Can't it be just formatted content?
On Fri, Jun 20, 2008 at 12:19 AM, Jody Cleveland cleveland@winnefox.org wrote:
I'm only going to be having this on one page, and was hoping to control exactly where it goes using php code. But, I wasn't able to find anything on how to do that.
- jody
On 6/19/08 3:57 PM, "Laura Scott" pinglaura@gmail.com wrote:
Yes. You can define a region in your theme, into which you place the block. Many themes by default will place blocks placed into the "content" region below the node. Look at the handbooks on phptemplate themes discussion on regions. Defining them is *really* easy in Drupal 6.
An alternative approach would be to use php within the node's content (using the input form and the php parser input setting) to print the block.
Laura
On Jun 19, 2008, at 12:45 PM, Jody Cleveland wrote:
Hello,
I'm running Drupal 6.2 and I have a question.
Is it possible to add a block into a content element? I want to create a page that includes a block I've created, but I want it in the content area of the page.
-- Jody Cleveland
-- [ Drupal support list | http://lists.drupal.org/ ]
-- Jody Cleveland
"The invisible and the non-existent often look very much alike."
- Julia Sweeney ~ Letting Go of God
-- [ Drupal support list | http://lists.drupal.org/ ]
Jody, in Drupal 6.2 this can be done without adding any custom modules or theme modifications.
Log in as administrator user.
Go to: - Administer - Site Building - Blocks
Then "Add Block" - create the content you want - this will be static content, although it could be dynamic via javascript.
You have visibility controls here. eg: Make it visible to all users, always.
There's also a section called "Page specific visibility settings" - here you can allow the block to be shown only on specific pages within the drupal site. (I recommend enabling the "Path" module so that you can specify url names to pages, which makes this type of access control easier.
When you save the block, it will appear in the disabled list back on the Blocks page. Move it to where you want (by drag or select from pull-down menu). Don't forget to save the page.
best, Matt
On 20/06/2008, at 3:47 AM, Cog Rusty wrote:
There used to be a http://drupal.org/project/insert_block module but it has not been upgraded to Drupal 6
I also recall a technique for creating "floater" theme regions in the content, at least for Drupal 5 (http://drupal.org/node/29139)
But if it is only for one page, does it need to be a block? Can't it be just formatted content?
On Fri, Jun 20, 2008 at 12:19 AM, Jody Cleveland <cleveland@winnefox.org
wrote: I'm only going to be having this on one page, and was hoping to control exactly where it goes using php code. But, I wasn't able to find anything on how to do that.
- jody
On 6/19/08 3:57 PM, "Laura Scott" pinglaura@gmail.com wrote:
Yes. You can define a region in your theme, into which you place the block. Many themes by default will place blocks placed into the "content" region below the node. Look at the handbooks on phptemplate themes discussion on regions. Defining them is *really* easy in Drupal 6.
An alternative approach would be to use php within the node's content (using the input form and the php parser input setting) to print the block.
Laura
On Jun 19, 2008, at 12:45 PM, Jody Cleveland wrote:
Hello,
I'm running Drupal 6.2 and I have a question.
Is it possible to add a block into a content element? I want to create a page that includes a block I've created, but I want it in the content area of the page.
-- Jody Cleveland
-- [ Drupal support list | http://lists.drupal.org/ ]
-- Jody Cleveland
"The invisible and the non-existent often look very much alike."
- Julia Sweeney ~ Letting Go of God
-- [ Drupal support list | http://lists.drupal.org/ ]
-- [ Drupal support list | http://lists.drupal.org/ ]
This is the site I'm working on: http://beta.menashalibrary.org/
I've got three blocks there, two node carousel's and a popular content block. Ideally what I'd like to do is have a div that contains those three blocks within the content area of a page. With the one carousel that rotates content, the popular content next to it, and the other carousel right below it. Kind of like this:
-------------------------------------------------------------- | | | | | | | | | -------------------------------------------------------------- | | | | | | --------------------------------------------------------------
________________________________
From: support-bounces@drupal.org on behalf of Cog Rusty Sent: Thu 6/19/2008 9:47 PM To: support@drupal.org Subject: Re: [support] Possible to add block to node content?
There used to be a http://drupal.org/project/insert_block module but it has not been upgraded to Drupal 6
I also recall a technique for creating "floater" theme regions in the content, at least for Drupal 5 (http://drupal.org/node/29139)
But if it is only for one page, does it need to be a block? Can't it be just formatted content?
On Fri, Jun 20, 2008 at 12:19 AM, Jody Cleveland cleveland@winnefox.org wrote:
I'm only going to be having this on one page, and was hoping to control exactly where it goes using php code. But, I wasn't able to find anything on how to do that.
- jody
On 6/19/08 3:57 PM, "Laura Scott" pinglaura@gmail.com wrote:
Yes. You can define a region in your theme, into which you place the block. Many themes by default will place blocks placed into the "content" region below the node. Look at the handbooks on phptemplate themes discussion on regions. Defining them is *really* easy in Drupal 6.
An alternative approach would be to use php within the node's content (using the input form and the php parser input setting) to print the block.
Laura
On Jun 19, 2008, at 12:45 PM, Jody Cleveland wrote:
Hello,
I'm running Drupal 6.2 and I have a question.
Is it possible to add a block into a content element? I want to create a page that includes a block I've created, but I want it in the content area of the page.
-- Jody Cleveland
-- [ Drupal support list | http://lists.drupal.org/ ]
-- Jody Cleveland
"The invisible and the non-existent often look very much alike."
- Julia Sweeney ~ Letting Go of God
-- [ Drupal support list | http://lists.drupal.org/ ]
-- [ Drupal support list | http://lists.drupal.org/ ]