I guess what you could do is create your own class of constants in C# for these values and use them eg.
public class MyConstants
{
const string MyMarcoAlias = "myMacro";
}
@Umbraco.RenderMacro(MyConstants.MyMacroAlias)
Only really useful if you render the same macro in a lot of different places - you can then change the alias easily. Otherwise probably not worth the effort.
Intellisense for Macros
So with templates for normal model fields we can do:
Instead of:
This is great and much neater.
Is there an equivalent for:
and:
?
Many thanks.
In short, no.
I guess what you could do is create your own class of constants in C# for these values and use them eg.
Only really useful if you render the same macro in a lot of different places - you can then change the alias easily. Otherwise probably not worth the effort.
Ah that's too bad. Ok, thanks!
is working on a reply...