Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

Archive /

Our old forums are still available as a read-only archive.

Moderators: martimiz, Sean, biapar, Willr, Ingo, simon_w

including flash (by using raw html)


Reply


4 Posts   1828 Views

Avatar
wolf

Community Member, 3 Posts

14 April 2008 at 9:38pm

hello.

i try to include a flash videoplayer into a side. i want to use the embed-tag to do so, however, whenever i try to include the necessary html code silverstripe replaces it with <object ...>, deleting all my flash variables i had inside the embed tag.

so my questions:

1) why does this happen
2) can i disable ANY replacement of my own html code. i dont want silverstripe to correct anything i insert as raw html actually.

Avatar
Blackdog

Community Member, 156 Posts

14 April 2008 at 10:35pm

is it included in your template file?

can you show your code?

Avatar
wolf

Community Member, 3 Posts

15 April 2008 at 1:22am

Edited: 15/04/2008 1:23am

no, i was talking about putting the HTML code into the content (by using the html editor).

my code reads like this here

<embed src="/assets/Uploads/flvplayer.swf" name="flashplayer"
bgcolor="#FFFFFF" width="375" height="320"
flashvars="allowfullscreen=true&file=/assets/Videos/preview.flv&image=
/assets/Uploads/preview.jpg&displayheight=300&displaywidth=375&height=320
&width=375&overstretch=fit&largecontrols=false&showicons=true&lightcolor=0xffffff
&backcolor=ffffff&frontcolor=000&
id=1752" pluginspage="http://www.macromedia.com/go/getflashplayer" />


however, when i save it silverstripe adds an <obeject - tag and removes my "flashvars" and of course the player wont work anymore. i would simply like to keep silverstripe from doing anything with my added code.

Avatar
Blackdog

Community Member, 156 Posts

16 April 2008 at 12:33am

ahhh I see. I have only used flash in SS through a element on the page which the client could change based on uploading a new flash file.

Sorry, haven't placed any flash into the content area.