Note that this will theme all blocks to use this TBP box. If you want just a specific block that contains this menu, you have to know this block's ID, and your template file should have one of these filenames - block-block-1.tpl.php, block-block-2.tpl.php, depending on what ID is the block. Important: the default block.tpl.php must be there as well even if you are using a block-block-1.tpl.php
Thanks for your quick response, however, that is not what I meant by.
The code you provided is for creating a node or page rather than for a default menu or block in Drupal. What I need is to use the default process to create a menu and then put it inside a block, which is to be placed in the right or left column of a theme. I want such block to be embedded inside a centain TBP box. But it seems to me there is no way to put the TBP codes while the block are been building in Drupal.
<script type="text/javascript"
src="http://theboxes.paradise.sg/sites/theboxes.paradise.sg/
files/Box/3/files/theboxesparadise_3.js">
</script>
<script type="text/javascript"> tbp_3_getHeader(); </script>
<script type="text/javascript"> tbp_3_getStartTitle(); </script>
Box's title goes here.
<script type="text/javascript"> tbp_3_getMid(); </script>
Your menu code can be put in here.
<script type="text/javascript"> tbp_3_getEnd(); </script>
You can find out more here as well for using different boxes.
Congratulations!
Wow!
Great to hear that you have gotten it to work! Happy theming!
Cheers!
It works!
Because I also use Nice Menus to create menus, the block ids are different from the default ones.
For example, the .tpl.php file names for theming block are block-nice_menus_1.tpl.php, block-nice_menus_2.tpl.php ... etc.
Block Theming
Hi,
What you want to achieve is to actually theme a block.
You will need to copy the block.tpl.php into your theme's directory, and edit this block. An example of what this block can have is this:
Note that this will theme all blocks to use this TBP box. If you want just a specific block that contains this menu, you have to know this block's ID, and your template file should have one of these filenames - block-block-1.tpl.php, block-block-2.tpl.php, depending on what ID is the block. Important: the default block.tpl.php must be there as well even if you are using a block-block-1.tpl.php
I need another solution.
Thanks for your quick response, however, that is not what I meant by.
The code you provided is for creating a node or page rather than for a default menu or block in Drupal. What I need is to use the default process to create a menu and then put it inside a block, which is to be placed in the right or left column of a theme. I want such block to be embedded inside a centain TBP box. But it seems to me there is no way to put the TBP codes while the block are been building in Drupal.
This is an example
Hi,
<script type="text/javascript" src="http://theboxes.paradise.sg/sites/theboxes.paradise.sg/ files/Box/3/files/theboxesparadise_3.js"> </script> <script type="text/javascript"> tbp_3_getHeader(); </script> <script type="text/javascript"> tbp_3_getStartTitle(); </script> Box's title goes here. <script type="text/javascript"> tbp_3_getMid(); </script> Your menu code can be put in here. <script type="text/javascript"> tbp_3_getEnd(); </script>You can find out more here as well for using different boxes.
How to do
But I don't know how to do that. My drupal is version 6.
Could you show me how to put a menu inside a TBP box?
TBP as Wrapper?
Hi,
Do you mean to say that the menu is inside a TBP Box?
If so, the answer is Yes. You can put the menu in the contents part of the Box.