Does anyone know if there is an easy way to get the item field in C#. So for example. I want to set a string in my c# code behind to look for the specific item and grab the property.
Be aware the the Document API goes to the database. If this is for published content, use the umbraco.presentation.nodefactory instead. Read more here:
Umbraco Item
Does anyone know if there is an easy way to get the item field in C#. So for example. I want to set a string in my c# code behind to look for the specific item and grab the property.
so many...
string paragraph = [umbraco Item field]; --> <umbraco:Item field="Paragraph" runat="server"></umbraco:Item>
I used this
umbraco.cms.businesslogic.web.Document field = new umbraco.cms.businesslogic.web.Document(1237);
object emailbody = field.getProperty("FEmail").Value;
Be aware the the Document API goes to the database. If this is for published content, use the umbraco.presentation.nodefactory instead. Read more here:
http://www.netaddicts.be/articles/document-api-vs-nodefactory.aspx
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.