U4-10840 - Can't create macros

Created by Mads Rasmussen 18 Jan 2018, 09:19:37 Updated by Sebastiaan Janssen 07 Feb 2018, 14:01:24

Relates to: U4-10939

Subtask of: U4-9432

When I try to create a macro in Umbraco 7.8 I get the error: "Could not task for operation Create for node type macros"

Comments

Warren Buckley 23 Jan 2018, 11:49:07

PR for this is here - https://github.com/umbraco/Umbraco-CMS/pull/2412

This bug was introduced because the tree for Macros was converted from a legacy tree into a new more modern tree in the code base, by doing so the legacy Create dialog that loads in nested UserControls was expecting the Create UI.XML for the legacy trees to be present, which it was but under an XML node that would be used for legacy trees.

Test Notes

  • Ensure you can now create macros from the UI by right clicking on the Macros tree and using the Create dialog


Robert Copilau 23 Jan 2018, 13:37:16

Creating macros works again! Awesome job @warren.buckley :D

Have done a [small change|https://github.com/umbraco/Umbraco-CMS/pull/2412/commits/c68f832be64e20dee5417374a6035cba99b899c1], delete action on macro context menu was lower case - not anymore :) Merging.


Daniel Chenery 07 Feb 2018, 08:44:51

I've just upgraded from 7.7.8, to 7.8.0 and still getting this issue :( Was it released in the final 7.8.0 build?

Note, that creating a Partial View Macro file (with a macro works, and is a workaround for now...)


Sebastiaan Janssen 07 Feb 2018, 09:11:11

@DaymediaDan Make sure your ~\Umbraco\Config\Create\UI.xml is updated, the macros alias needs to look like this:

Macro
/create/simple.ascx


Daniel Chenery 07 Feb 2018, 09:17:49

@sebastiaan Ah, I was missing <create assembly="umbraco" type="macroTasks" /> That's fixed it. Cheers :)


Sebastiaan Janssen 07 Feb 2018, 13:36:48

Just realized that NuGet upgrades don't add this node in the UI.xml so I will make sure that gets fixed for 7.8.1 - did you use NuGet @DaymediaDan ?


Daniel Chenery 07 Feb 2018, 13:38:42

@sebastiaan Yupp, upgraded via NuGet


Sebastiaan Janssen 07 Feb 2018, 14:01:24

Cheers Daniel! Have created U4-10939 to get a config transform in for 7.8.1


Priority: Normal

Type: Bug

State: Fixed

Assignee:

Difficulty: Normal

Category:

Backwards Compatible: True

Fix Submitted:

Affected versions: 7.8.0

Due in version: 7.8.0

Sprint: Sprint 77

Story Points: 1

Cycle: 7