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.
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.
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.
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
is working on a reply...