Custom Template for Content Block won't show images

Permalink
Hi all ...
I have a custom template for the content blocks that essentially wraps the block in a div that assigns two classes <div class="sidebarbox"><div class="sidebar2"><?=$content?></div></div> the two classes essentially put a border around the block and change the background color. This structure in html has no problems ... when I apply it in the C5 venue though, all of my images only show their "alt" ... the generated code for the image reads "<img height="192" width="800" alt="alt text" src="/files/">" I really need to be able to apply the template to the content block that includes images ... any help would be greatly appreciated ...

RealDesign
 
ThemeGoodness replied on at Permalink Reply
ThemeGoodness
hey did you get this fixed? I recently did some content custom templates I could attach if you want to take a look at them.

Steph
Cyberdave replied on at Permalink Reply
Cyberdave
Please do, I would like to see how this is done. Thanks.
otter replied on at Permalink Reply
I hope people are still active on this thread...

I am trying to apply a custom theme to a C5 site. I built the site by customizing a template with my own images and graphics. I watched a video on customizing C5 themes and followed the instructions as close as I understand them.

I added the "get path" php code for my .css link. <link href="<?=$this->getThemePath()?>/style.css" rel="stylesheet" type="text/css" />

But it still does not look like the .css is being applied correctly.

I think I've seen a lot of people with similar problems, but not sure which solution is best.

Also, I am using div tags and the style sheet is basically controlling where the images and graphics are going. Is this presenting another problem for the get path php code?
aghouseh replied on at Permalink Reply
aghouseh
You don't actually have to use a custom template just to wrap each block in an area with a custom div. The block controller has a function called setBlockWrapperStart and setBlockWrapperEnd that let you define code to go around the contents of the block.

$a = new Area('Content');
$a->setBlockWrapperStart('<div class="article">');
$a->setBlockWrapperEnd('</div>');
$a->display($c);
jordanlev replied on at Permalink Reply
jordanlev
aghouseh replied on at Permalink Reply
aghouseh
^^ Designer Content block is a lifesaver for sure.