Hello all,

Thank you for this module. I managed to reproduce the steps required to select the right template for my block. However, I do not get anything displayed on my block. In other words, if i select to display a background colour, this does not show up. Any advice?
My template php file reads as follows:

// $Id: block.tpl.php,v 1.1 2009/08/25 19:15:43 troy Exp $
print $block->module; " id="block- print $block->module; - print $block->delta; customtemplate">
if ($block->subject) {

print $block->subject;

}

print $block->content;

My local.css input reads as follows:
.customtemplate{
background:#000 ;
}

I use the summertime theme.

Thanks,
T

Comments

mrtoner’s picture

Component: Code » Miscellaneous
Status: Active » Fixed

I know this is old, but perhaps you're still needing help. Here's how to get started:

Download the Tapestry theme -- it doesn't matter whether the 5.x or 6.x-dev version. Copy these files to your Summertime theme directory:

blk-nomargins.tpl.php
blk-outline1.tpl.php
blk-outline2.tpl.php
blk-outline3.tpl.php
blk-outline4.tpl.php
blk-rollover1.tpl.php
blk-rollover2.tpl.php
blk-solid1.tpl.php
blk-solid2.tpl.php
blk-solid3.tpl.php
blk-solid4.tpl.php
color0-pagebg.tpl.php
color1-pagebg.tpl.php
color2-pagebg.tpl.php
color3-pagebg.tpl.php
color4-pagebg.tpl.php
color5-pagebg.tpl.php
stripe0-pagebg.tpl.php
stripe1-pagebg.tpl.php
stripe2-pagebg.tpl.php
stripe3-pagebg.tpl.php
stripe4-pagebg.tpl.php

Change all of those files to have a blocktheme- prefix. (Do this only if you're using the 6.x version of Block Theme.)

Copy this to the Custom Block Templates field at /admin/settings/blocktheme:

blk-outline1|Outline1
blk-outline2|Outline2
blk-outline3|Outline3
blk-outline4|Outline4
blk-solid1|Solid1
blk-solid2|Solid2
blk-solid3|Solid3
blk-solid4|Solid4
color0-pagebg|Color0 Page BG
color1-pagebg|Color1 Page BG
color2-pagebg|Color2 Page BG
color3-pagebg|Color3 Page BG
color4-pagebg|Color4 Page BG
stripe0-pagebg|Stripe0 Page BG
stripe1-pagebg|Stripe1 Page BG
stripe2-pagebg|Stripe2 Page BG
stripe3-pagebg|Stripe3 Page BG
stripe4-pagebg|Stripe4 Page BG
blk-nomargins|No Margins
blk-rollover1|Rollover 1
blk-rollover2|Rollover 2

Now select the custom theme for your block.

If none of those themes suffice, look at the themes you copied over to get an idea how to create your own.

Tafa’s picture

Hi mrtoner,

No, it's never too late and your feedback is always appreciated. The issue is ongoing but not a priority. nevertheless, this is a very good answer which I will implement very soon. I will let you know if this gets fixed then.
Thanks
T

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.