By feeper on
Still somewhat new to this....
I have run into a problem and I am not sure how to go about getting this to work.
http://www.kdmp.ca/testground/blocks.jpg
In the linked image there are two different styles of menu blocks. There will be changes to those menu blocks so I can't just 'hard code' it into the theme. Is there a way to allow for two different styles of menu blocks to be used?
Comments
=-=
custom block.tpl.php files
you can target a block by using it's delta
more information in the theme developers handbook.
Hi verymisunderstood, I have
Hi verymisunderstood,
I have read it over. I guess I am not sure how that new block is called. Somewhat new to Drupal theming.
Would anybody mind helping a somewhat newbie to the Drupal theming...help me make sense of this? :)
=-=
Each block has a delta or #
hover over the block name in administer -> blocks
there you will see the block #
example: the login block provided by core is always user/0
that information along with http://drupal.org/node/104319
should be enough. If you have specific questions you can be given specific answers.
Well this is probably more of
Well this is probably more of a css question...but how would I get the blocks to show up the way I have them in the layout image with a custom block.tpl?
I can see that the custom blocks.tpl will stack in a vertical row. I didn't see anything in the reading material about this and it may just be css controlled in the custom block. My two dimensional thinking.
Furthermore....
okay further more to the above.
I have created two new regions. Menu1 and Menu2. They are displaying correctly. Which is good.
Here is the code that I have in block.tpl.php:
Block-menu1.tpl.php:
Block-menu2.tpl.php:
Right now I am aiming for the custom blocks to be seen...but I am not sure what I am doing wrong here and the documentation has helped thus far...but just not sure what else I am missing here.
Thanks!
Hmmm.
Now this is confusing.
I thought block.tpl.php is used to show contents in a region???
Why is that I can remove block.tpl.php from my theme directory and it still shows me block content??
Well it might help if I had
Well it might help if I had named the block file correctly. I corrected the name of the custom block file to coincide with the name of the region...voila it worked.
Now I have a problem of the blocks stacking one over each other.
http://www.kdmp.ca/testground/blocks2.jpg
Current custom block code:
If I remove the references to the blocks in the page.tpl.php and replace it with just the div's that I have in my custom block file it appears fine. Any suggestions what may be causing this in drupal ... or is it my css??
Code from page.tpl.php:
CSS for the above:
Anybody have any ideas what I am doing wrong??
Anybody?
Anybody?
I have otherwise stumped
I have otherwise stumped people...or I haven't provided enough details.... Could somebody let me know which one?? :P
=-=
have a link to the site with the blocks enabled so that we can take a look at the source code?