Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
Hi
I'm trying to register a macro programmatically.
I've created a razor view in the MacroPartials folder and are trying to figure out what to do next.
Where do I even start? Thanks
Start with the MacroService, see the Services API reference: https://our.umbraco.org/Documentation/Getting-Started/Code/Umbraco-Services/
MacroService
Example: https://github.com/umbraco/OurUmbraco/blob/master/OurUmbraco/Our/MigrationsHandler.cs#L47
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.
Continue discussion
Register macro programmatically
Hi
I'm trying to register a macro programmatically.
I've created a razor view in the MacroPartials folder and are trying to figure out what to do next.
Where do I even start? Thanks
Start with the
MacroService, see the Services API reference: https://our.umbraco.org/Documentation/Getting-Started/Code/Umbraco-Services/Example: https://github.com/umbraco/OurUmbraco/blob/master/OurUmbraco/Our/MigrationsHandler.cs#L47
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.