Banner block
Permalink
Hi there
I am new to C5 and have created my theme, auto nav etc but I am stuck now that I need to create a custom block for the site.
I need a banner that changes it's colour and image on each page while maintaining a size and liquidity.
I have the css / html to make the block work - I just can't seem to find the right way of turning it into a block - I have read and reread tutorials - But it just won't sink in - is there a block out there I could customise for my own ends?
html for the banner
css for the banner
Thanks in advance - jackie
I am new to C5 and have created my theme, auto nav etc but I am stuck now that I need to create a custom block for the site.
I need a banner that changes it's colour and image on each page while maintaining a size and liquidity.
I have the css / html to make the block work - I just can't seem to find the right way of turning it into a block - I have read and reread tutorials - But it just won't sink in - is there a block out there I could customise for my own ends?
html for the banner
css for the banner
#banner{ width:100%; height:250px; min-width:650px; background-image:url(images/banner.gif); background-repeat:repeat-x; } .float-r{ float:right; } .float-l{ float:left; } .clear{ clear:both;
Viewing 15 lines of 19 lines. View entire code block.
Thanks in advance - jackie
Hi Scott
Crude - yes!
Does it work - like a treat!
Thankyou muchly - I am sure as I get my head around more of concrete5 I will be able to write the block up - but hey it works just perfect so it will get me through to the next step!
cheers for now
j
Crude - yes!
Does it work - like a treat!
Thankyou muchly - I am sure as I get my head around more of concrete5 I will be able to write the block up - but hey it works just perfect so it will get me through to the next step!
cheers for now
j
ah good :) path of least resistance, you'll learn to love it.
Blocks aren't too bad, I'll have to do a blog post on all the gotchas i've encountered over the last year and a half or so with them.
The issue i had with making a block with this is that it wasn't really block worthy(since you were using theme files), not saying this wouldn't be a perfectly valid block, it'd actually be a perfect block using the filesystem.
Anywho,
Glad I could help.
-Scott
Blocks aren't too bad, I'll have to do a blog post on all the gotchas i've encountered over the last year and a half or so with them.
The issue i had with making a block with this is that it wasn't really block worthy(since you were using theme files), not saying this wouldn't be a perfectly valid block, it'd actually be a perfect block using the filesystem.
Anywho,
Glad I could help.
-Scott
This would be kind of crude, but perfectly valid.
create a folder in siteroot/blocks/image/templates/banner/
put in a view.php
place your codeblock the first one in your post there
create view.css in the same folder
place your css in there.
add an image, it doesn't matter what it is. Then click the block in edit mode, click set custom template, and select "banner"
That should work. This would really be a real block but this will get you by for now.