Page 1 of 1

SWF file as top banner

Posted: Thu Sep 21, 2006 11:52 pm
by retrac
I am a big newbie to cms' in general.  I am learning so  much and really enjoying using cmsmadesimple.  Can anyone tell me what the best way to use an swf file as the header logo is?

Thank you in advance.

retrac

Re: SWF file as top banner

Posted: Fri Sep 22, 2006 4:27 am
by marino
It's the same as inserting an image. The FCK editor has an "insert flash" button right next to the "insert image" button.

The way we did it is this:
Content -> Global Content Blocks
Created a new content block called : "top-banner"
Inserted the flash.

Then we went to our default template and entered

Code: Select all

<div id="banner">{global_content name="top-banner"}</div>
where we wanted the flash to appear.

Whenever we need to update the banner we just update the "top-banner" content block.

Hope this helped.
I'm new to CMSMS too.
Marino

Re: SWF file as top banner

Posted: Fri Sep 22, 2006 9:50 am
by retrac
Thankyou that is very helpful.  I'm having trouble getting the banner to behave though.  It seems to appear very small in the top left corner instead spreading across the entire header.  I'm a newbie to scripting so I am hacking about with the default templates.  Have a look.  http://www.retrac2.co.uk

Re: SWF file as top banner

Posted: Fri Sep 22, 2006 1:34 pm
by marino
CMSMS can't help you determine the dimensions of flash. You have to tell it what you want them to be.

If you used the FCK editor to  insert the flash, you should have specified the width and height at that time.
Now you need to switch the editor to HTML source mode and edit the width and height.

This is what you have now.

Code: Select all

<embed width="160" height="120"
Marino

Re: SWF file as top banner

Posted: Fri Sep 22, 2006 4:15 pm
by retrac
Thank-you,  been in front of the computer too long.  I did actually put them in as 160 and 120 when it should have been 600 and 120!!  It's working properly now!

Re: SWF file as top banner

Posted: Sun Oct 15, 2006 3:33 pm
by enzo
Thanks Marino

I have been trying to replace the banner for ages, but did not know how to do it. I use static contnent (.jpg) in my banner, this works perfect.