Flash Header

A place for discussion about skinning and design. Before posting questions here you should review the documentation about creating skins.

This thread is closed to new posts. You must sign in to post in the forums.
4/23/2009 11:47:35 AM
Gravatar
Total Posts 8

Flash Header

Flash Header...

Hi everyone... I'd LOVE to know how to place a flash header on the home page and other select pages within the site, dynamically. Also, where should I place the Flash object and how should I link to it.

Here is a link to the site I'm working on, and I would love to know how to link up the flash so it's not a "template" or "skin" item in the div labeled FLASH PANEL.

Sorry, this is probably all elementary, but I'm a newbie with CMS, let alone mojo. :)

Thanks.

Tim

4/23/2009 11:48:49 AM
Gravatar
Total Posts 8

Re: Flash Header

7/9/2009 12:18:38 PM
Gravatar
Total Posts 9

Re: Flash Header

I have the same question.. How could I include a flash movie as the main banner???

Thanks.

10/12/2009 2:17:44 PM
Gravatar
Total Posts 67

Re: Flash Header

One solution that I am using is to use an additional panel (you can view the allowed id's here: http://www.mojoportal.com/understandingthelayoutmasterfile.aspx) and insert the flash into a content pane at the top. this pane will not appear if you do not insert a content object into it.

4/19/2010 3:44:54 AM
Gravatar
Total Posts 7

Re: Flash Header

I have tried to do like below, and it works for any browser except. IE. I'm stuck because I use this way in other master files for other CMS, and it's okay.

...

<div id="wrapcenter">
<!--here we want to put the flash obj-->
<object id="Object1" data="../../../../../Resurse_Gradinita/home_inima_flat.swf"
height="115" type="application/x-shockwave-flash" width="815">
<param name="movie" value="home_inima.swf" />

</object>
<!--here it was the original banner of the skin "styleshout-brightsideoflife"-->
<!--<portal:SkinFolderImage ID="imgs1" runat="server" ImageFileName="headerphoto.jpg" CssClass="headerphoto" AlternateText=" " />-->
<asp:Panel id="divLeft" runat="server" cssclass="leftside" visible="True" SkinID="pnlPlain">
<portal:PageMenu id="PageMenu1" runat="server" UseTreeView="true" TreeViewShowExpandCollapse="true" />
<a id="startcontent"></a>
<asp:contentplaceholder ID="leftContent" runat="server"></asp:contentplaceholder>
</asp:Panel>
<asp:Panel id="divCenter" runat="server" visible="True" cssclass="center-rightandleftmargins" SkinID="pnlPlain">
<portal:Breadcrumbs id="Breadcrumbs" runat="server"></portal:Breadcrumbs>
<portal:ChildPageMenu id="ChildPageMenu" runat="server" CssClass="txtnormal"></portal:ChildPageMenu>
<asp:ContentPlaceHolder ID="mainContent" runat="server"></asp:ContentPlaceHolder>
</asp:Panel>
<asp:Panel id="divRight" runat="server" visible="True" cssclass="rightside" SkinID="pnlPlain">
<asp:contentplaceholder ID="rightContent" runat="server"></asp:contentplaceholder>
</asp:Panel>
</div>

...

4/19/2010 12:31:06 PM
Gravatar
Total Posts 18439

Re: Flash Header

Hi,

I would get rid of all that ../../ stuff in the url and just use the url relative to the root of the site /somefolder/somefolder/whateverthepathis/Resurse_Gradinita/home_inima_flat.swf

Hope it helps,

Joe

4/19/2010 2:09:45 PM
Gravatar
Total Posts 7

Re: Flash Header

Thnx Joe but no: in IE it does not show. In Firefox, Opera or Chrome is OK. In IE I just have a "(1 item remaining) waiting for ... "

 

The folder structure is:

1.) root (absolute): D:\Web\Sites\inima-lui-isus.ro

2.) some resources (here is a place from where the flash works at least in mozilla, opera etc.): D:\Web\Sites\inima-lui-isus.ro\Resurse_Gradinita

3.) root (in mojo portal meaning) : D:\Web\Sites\inima-lui-isus.ro\Data\Sites\1

4.) skin that i want to modify it's master: D:\Web\Sites\inima-lui-isus.ro\Data\Sites\1\skins\styleshout-brightsideoflife

 

If my flash is in 1, 3 or 4, is not working anymore (nor in mozilla, opera etc.)

If you are kindly maybe you take a look at http://www.inima-lui-isus.ro using IE (8) and another browser at your choice for seeing what I talking about.

4/19/2010 2:59:00 PM
Gravatar
Total Posts 18439

Re: Flash Header

Hi,

1. Create a folder at /Data/Sites/1/media/flash and put your flash movie in this folder.

2. Try changing your markup for the flash like this:

<object id="Object1" data="/Data/Sites/1/media/flash/home_inima_flat.swf"
height="115" type="application/x-shockwave-flash" width="815">
<param name="movie" value="/Data/Sites/1/media/flash/home_inima_flat.swf" />
</object>

Hope it helps,

Joe 

4/19/2010 4:17:20 PM
Gravatar
Total Posts 7

Re: Flash Header

Thnx,

 

It works now in IE8. What was the problem, and why it worked in other browser?

 

winkyes

4/20/2010 12:27:11 PM
Gravatar
Total Posts 18439

Re: Flash Header

Hi,

There are 2 different syntax approaches to relative urls. In a CMS like mojoPortal it is better to use the syntax that makes it relative to the root of the site, basically if the relative url starts with / that means the root of the site. The other syntax with ../../, each ../ means to find the root go up one level from here. You had a bunch of ../../../ in your previous url and that may have been the correct path to the root relative to the layout.master file, but the problem is it needs to be relative to the url of the page not the layout.master file. So the easiest way is to use the syntax with urls relative to the root of the site because this will work correctly no matter the url of the page. So actually I think your previous url for the flash was incorrect, all those ../../ pointed to a location actually higher than the root of the site. The reason it worked in some browsers is because in general browsers are very forgiving of incorrect markup, some browsers are more forgiving than others for some types of issues. So my guess is some browsers compensate for a ../../ syntax that points higher than the root and they figure out where root is correctly.

The ../../ kind of syntax was more useful when using static html files located in folders on disk but in a CMS I recommend always use urls relative to the root of the site, they are easier to read and they will work no matter what the url of the page is.

Hope it helps,

Joe

3/28/2011 3:05:40 PM
Gravatar
Total Posts 6

Re: Flash Header

Any thoughts on how to have a flash header appear only on the home page, with a static image/logo as the header for all other pages?

Thx!

You must sign in to post in the forums. This thread is closed to new posts.