Copied to clipboard

Flag this post as spam?

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


  • Bo Kingo Damgaard 157 posts 456 karma points
    Jun 06, 2011 @ 21:49
    Bo Kingo Damgaard
    0

    How to use uploadField in usercontrol in frontend?

    Hi all you Umbraco experts

    I would like to use the uploadField data in a usercontrol that renders in the frontend. Specifically I want to add an upload control to upload an image to the Media section, and set a property on a node with that ID. The property part is no problem, however the control is.

    I've tried to put this in the .ascx  file

    <%@ Register TagPrefix="ctrl" Namespace="umbraco.editorControls" Assembly="umbraco.editorControls" %>

    and then this

    <ctrl:uploadField runat="server"></ctrl:uploadField>

    and I get a traceerror: 'umbraco.editorControls.uploadField' does not contain a constructor that takes 0 arguments

    Does this mean that I can't add it from design, and need to do it from code to call the constructor with the 2 parameters, or is there another way?

    Umbraco is version 4.7

    /Bo Kingo

Please Sign in or register to post replies

Write your reply to:

Draft