U4-3430 - Save Properties not working for usercontrol macro

Created by Rick Mason 06 Nov 2013, 15:44:02 Updated by Shannon Deminick 21 Nov 2013, 00:28:43

Is duplicated by: U4-3577

I have created an ASCX file and saved it in the ~/usercontrols folder, with its DLL in the ~/bin folder. I create a macro and specify ~/usercontrols/Example.ascx in the Macro Properties > usercontrol box. I can add this macro to a template and it works.

The code-behind for the ASCX has a public property defined as:

public string ExampleProperty { get; set; }

In Macro Properties I click "Browse Properties". A panel named "Choose Properties from Example" appears and lists ExampleProperty. It is ticked. I click "Save Properties" and it says:

"The following Macro Parameters was added: Added: Example Property Important: You might need to reload the macro to see the changes."

In the left menu I click on Macros > Reload Nodes, then on my macro, then the Parameters tab. I expect to see a parameter but there are none.


Rick Mason 07 Nov 2013, 11:02:08

I've just installed Umbraco v6.1.6 using exactly the same setup and test code. This function works there. The "reload nodes" step is not necessary, but clicking the macro name in the navigation tree is.

Per Ploug 11 Nov 2013, 12:44:07

same thing in V7, as its the exact same editor, you should not need to reload the tree, but just reload the macro editor

Shannon Deminick 14 Nov 2013, 10:12:21

I can replicate this, when i click add nothing happens. investigating now.

Priority: Critical

Type: Bug

State: Fixed

Assignee: Shannon Deminick

Difficulty: Normal


Backwards Compatible: True

Fix Submitted:

Affected versions: 7.0.0

Due in version: 7.0.0


Story Points: