Calling Property values and Multilingual Vorto Values in Model
Hello All,
I am stuck in how to call Umbraco Property Values or more specifically Vorto values inside a Model. I am having this RegularExpression with an ErrorMessage
Just needed to know as to how to call Umbraco Vorto Values and Property values.
In .cshtml view files I use this method....
@{
var page = Umbraco.Content(node_id);
IPublishedContent pageContent = (IPublishedContent)page ;
var pageTitle = @pageContent.GetVortoValue("pageTitle");
}
<p>@pageTitle</p>
Where, of course @pageTitle is the property value (VortoValue in specific).
So, which is the best method to call property values and vorto values inside a Model.
Specially in ErrorMessage section in RegularExpression directive in a Model.
Calling Property values and Multilingual Vorto Values in Model
Hello All,
I am stuck in how to call Umbraco Property Values or more specifically Vorto values inside a Model. I am having this RegularExpression with an ErrorMessage
Just needed to know as to how to call Umbraco Vorto Values and Property values. In .cshtml view files I use this method....
Where, of course @pageTitle is the property value (VortoValue in specific). So, which is the best method to call property values and vorto values inside a Model. Specially in ErrorMessage section in RegularExpression directive in a Model.
Please suggest me.
Regards,
Mangirish
is working on a reply...