So I'm attempting to utilize the Content Type Picker as a parameter for a macro. When adding the macro to a page, I select the content type with alias "myType".
How do I retrieve the alias of the document type in the partial view of the macro?
Currently, I am using:
var type = Model.MacroParameters["myType"];
which gives the ID of the document type. Can I retrieve the alias of the document type using the ID?
When using:
@Umbraco.Content(type)
It returns an empty Content object.