umbraco7 - How do access the tab details in C# from Umbraco 7? -


please see following image.

umbraco7 screen

i using umbraco 7. can see in image have 'general messages' tab. have saved error messages in , need access these error messages code, can in csharp ?

i'm going assume have template assigned sign page, , want @ messages on view.

that being case, can use either:

@umbraco.field("yourpropertyaliashere") 

or

@model.content.getpropertyvalue("yourpropertyaliashere") 

the main difference umbraco.field has bunch of useful additional parameters things recursive lookup.

if want @ properties within random c# in umbraco site isn't related t actual signup page, assuming have umbraco helper, can following:

var page = umbraco.typedcontent(1234); //replace '1234' id of signup page!  var message = page.getpropertyvalue<string>("yourpropertyaliashere"); 

Comments