Copied to clipboard

Flag this post as spam?

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


  • Jason Denousse 16 posts 46 karma points
    Mar 20, 2015 @ 15:41
    Jason Denousse
    0

    Editable mediaFile

    Is it possible for the mediaFile to be an Umbraco content page field? I want my customer to be able to upload their own flash files from the Content section.

    Below is my template:

    <%@ Master Language="C#" MasterPageFile="~/umbraco/masterpages/default.master" AutoEventWireup="true" %>

    <asp:Content ContentPlaceHolderID="ContentPlaceHolderDefault" runat="server">

    <umbraco:Macro mediaFile="<umbraco:Item field="backgroundImage" runat="server" />" flashWidth="1024" flashHeight="768" Alias="InsertFlash" runat="server"></umbraco:Macro>

     

    </asp:Content>

     

    The 'backgroundImage' field is one that i use where the customer can change the background to an image and this works, however, they now wish to upload flash files.

  • Anders Burla 2560 posts 8256 karma points
    Mar 23, 2015 @ 09:14
    Anders Burla
    0

    Yes you can make it dynamic. Don't know the exact syntax - but it should be possible.

    https://our.umbraco.org/forum/developers/xslt/10961-Dynamic-parameter-to-macro

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies