Copied to clipboard

Flag this post as spam?

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


  • Yasar Bhatti 1 post 71 karma points
    Dec 02, 2015 @ 11:23
    Yasar Bhatti
    0

    Show default value in properties editor for Macro

    I have a .NET User Control. This control has public properties. These properties have default values assigned to them. I've added this control to Umbraco as a macro and can see the public properties defined as parameters. I can use the control without any problems....however when adding the macro to a page, I want to be able to see the default value of the parameter. However every time I add a control to a page, the parameter controls are blank (even though they do have default values assigned to them in the .NET User Control). Is there anyway for the parameter controls to be pre-populated with the default values of the properties they are representing? If so, how do I do it? I want the user that's adding to control to be able to see what the default values of the parameters are.

Please Sign in or register to post replies

Write your reply to:

Draft