Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Euge 23 posts 130 karma points
    Sep 09, 2013 @ 15:30
    Euge
    0

    Add flash file (swf) to Umbraco v6.1.3 template

    Hi

    I am migrating a site to Umbraco that has a single flash (swf) file.

    I need to hardcode the flash object in the template.

    What steps would I need to achieve this?

    I am using Umbraco V6.1.3 MVC & Razor

    Thanks

  • Alex Skrypnyk 6163 posts 24143 karma points MVP 8x admin c-trib
    Sep 09, 2013 @ 15:50
    Alex Skrypnyk
    0

    Hi Eugene,

    We recommend you to use Umbraco Media. Just create new media item in Umbraco and then use it's ID in Razor template.

    var dynamicMediaItem = Umbraco.Media(CurrentPage.mainImage);
    <img src="@dynamicMediaItem.umbracoFile" alt="@dynamicMediaItem.Name"/>
    

    http://our.umbraco.org/documentation/Using-Umbraco/Backoffice-Overview/Property-Editors/Built-in-Property-Editors/Media-Picker

    Thanks, Alex

  • Euge 23 posts 130 karma points
    Sep 09, 2013 @ 16:03
    Euge
    0

    Thanks Alex

    The flash object consumes XML so I guess I just add the SWF as above and reference the XML feeds in the razor script?

Please Sign in or register to post replies

Write your reply to:

Draft