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...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
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...