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
With Umbraco 7.7.2+, is there way with either IPublishedContent or UmbracoHelper, or something similar in getting the given template alias?
If it matters, I'm using models builder on my templates.
Thanks
You can use .GetTemplateAlias() on IPublishedContent
.GetTemplateAlias()
IPublishedContent
For example:
var templateAlias = Model.Content.GetTemplateAlias();
Many many thanks! That worked.
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
Is it possible to get Template alias?
With Umbraco 7.7.2+, is there way with either IPublishedContent or UmbracoHelper, or something similar in getting the given template alias?
If it matters, I'm using models builder on my templates.
Thanks
You can use
.GetTemplateAlias()
onIPublishedContent
For example:
Many many thanks! That worked.
is working on a reply...