Include a swf file from the CMS in a page.

Jonathan Franks's Avatar

Jonathan Franks

31 Jul, 2014 03:37 PM

Hi

One of our users has uploaded a .swf file in the CMS and now wants to use it on one of his pages. How can he do this?

He is trying to to use the embed helper of the WYSIWYG but no matter what path/url to the asset that he types, it doesn't seem to work.

I have tried to put a direct URL to the video in the CMS (/render/file.act?id=8ced94bd0a0f23150005969e7c9889c6&type=file&forceDownload=true&rewrite=false) but event his doesn't work.

Can this be done?

Thanks

  1. Support Staff 1 Posted by Tim on 31 Jul, 2014 03:54 PM

    Tim's Avatar

    Hi Jonathan,

    I just uploaded a SWF file into my local instance and tried to embed it into a Page using the 'Insert/Edit Embedded Media' icon. For the 'File/URL' field, I provided it with the path to my SWF file in Cascade Server. I then noticed that the code rendered did not properly rewrite the links to the SWF in the system. This appears to be due to the fact that Cascade Server doesn't look to rewrite links in 'data' attributes or 'value' attributes.

    So, to force the system to attempt to rewrite the link, try using 'system-asset' tags around the path to the flash file. For example, in my 'File/URL' field I used:

    [system-asset]/swf-test/Car-speakers-590x90.swf[/system-asset]
    
    This allowed the system to rewrite the links as expected and the flash file now loads in my page. Give this a shot and let me know if it helps.

    In the meantime, I'll look around for any related issues in our Cascade Server project because I don't see how this could ever work for internal flash files (only external ones) the way things are currently configured.

    Thanks

  2. 2 Posted by Jonathan Franks on 31 Jul, 2014 04:11 PM

    Jonathan Franks's Avatar

    Thanks Tim.

    That worked well, although it is a little more difficult for users to have to edit the HTML and use the [system-asset] tag every time.

    If there's no other way to do it, this might be a good feature that could use an improvement in a future release.

  3. Support Staff 3 Posted by Tim on 31 Jul, 2014 07:05 PM

    Tim's Avatar

    Hey Jonathan,

    Glad to hear that worked. I totally agree with you that this is not user friendly so I went ahead and filed an issue here to address it.

    Thanks for the feedback! Have a good one.

  4. Tim closed this discussion on 31 Jul, 2014 07:05 PM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac