Foren
Embed flash at portal_normal.vm
Ahmad Rose, geändert vor 12 Jahren.
Embed flash at portal_normal.vm
New Member Beiträge: 3 Beitrittsdatum: 24.11.11 Neueste Beiträge
Hi,
i'm new with liferay 6 , can anyone tell me how i can embed my flash video .swf into the portal_normal.vm
Thanks
i'm new with liferay 6 , can anyone tell me how i can embed my flash video .swf into the portal_normal.vm
Thanks
Adolfo Benedetti, geändert vor 12 Jahren.
RE: Embed flash at portal_normal.vm
Junior Member Beiträge: 45 Beitrittsdatum: 04.06.09 Neueste Beiträge
Hi Ahmad,
You can do something like this:
You can do something like this:
....... <div id="banner"> <div id="flashcontent"> #set ($user_movie = "/documents/10154/0ceef80d-1b93-4d9f-9957-b7824511044b") ##DLFlashUUID #set ($flashvars = "empty") <object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="990" height="192" id="02.resources" align="middle"> <param name="movie" value="$user_movie"> <param name="quality" value="high"> <param name="bgcolor" value="#fa9739"> <param name="play" value="true"> <param name="loop" value="true"> <param name="wmode" value="transparent"> <param name="scale" value="showall"> <param name="menu" value="true"> <param name="devicefont" value="false"> <param name="salign" value=""> <param name="allowScriptAccess" value="sameDomain"> <param name="flashvars" value="$flashvars"> <!--[if !IE]>--> <object type="application/x-shockwave-flash" data="$user_movie" width="990" height="192"> <param name="movie" value="$user_movie"> <param name="quality" value="high"> <param name="bgcolor" value="#fa9739"> <param name="play" value="true"> <param name="loop" value="true"> <param name="wmode" value="transparent"> <param name="scale" value="showall"> <param name="menu" value="true"> <param name="devicefont" value="false"> <param name="salign" value=""> <param name="allowScriptAccess" value="sameDomain"> <param name="flashvars" value="$flashvars"> <!--<![endif]--> <a href="http://www.adobe.com/go/getflash"> <img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" width="990" heigth="192" alt="Get Adobe Flash player"> </a> <!--[if !IE]>--> </object> <!--<![endif]--> </object> </div> </div>
....
Ahmad Rose, geändert vor 12 Jahren.
RE: Embed flash at portal_normal.vm
New Member Beiträge: 3 Beitrittsdatum: 24.11.11 Neueste Beiträge
Hi Adolfo,
Thanks a lot for the code u give me , that is very helpful for me.
What should i change at the code if i put the .swf file at the specific folder
under the /image folder.
I put the .swf folder under the folder named template.
Thanks
Thanks a lot for the code u give me , that is very helpful for me.
What should i change at the code if i put the .swf file at the specific folder
under the /image folder.
I put the .swf folder under the folder named template.
Thanks
Raja Nagendra Kumar, geändert vor 12 Jahren.
RE: Embed flash at portal_normal.vm
Expert Beiträge: 484 Beitrittsdatum: 02.03.06 Neueste Beiträge
You need make sure velocity template variable user_movie is set as in line
#set ($user_movie = "/documents/10154/0ceef80d-1b93-4d9f-9957-b7824511044b")
replace the $user_movie with URL of swf.. such should be available to public with normal http request.
<param name="movie" value="$user_movie" />
You can more info on velocity variables at
http://www.liferay.com/community/wiki/-/wiki/Main/Custom+Velocity+Variables#section-Custom+Velocity+Variables-Custom+Velocity+Variables
Regards,
Nagendra
#set ($user_movie = "/documents/10154/0ceef80d-1b93-4d9f-9957-b7824511044b")
replace the $user_movie with URL of swf.. such should be available to public with normal http request.
<param name="movie" value="$user_movie" />
You can more info on velocity variables at
http://www.liferay.com/community/wiki/-/wiki/Main/Custom+Velocity+Variables#section-Custom+Velocity+Variables-Custom+Velocity+Variables
Regards,
Nagendra
Ahmad Rose, geändert vor 12 Jahren.
RE: Embed flash at portal_normal.vm
New Member Beiträge: 3 Beitrittsdatum: 24.11.11 Neueste Beiträge
Hi Adolfo, Raja
Thanks so much, i've try the code you all give to me. And i get what i want to look at my dev site.
My flash video run successfully!
Thanks again!!
Thanks so much, i've try the code you all give to me. And i get what i want to look at my dev site.
My flash video run successfully!
Thanks again!!