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...
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
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...
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.