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
I am working on a stock status, and I need the stock property to be set to 0 when a new document of a specific doctype I created.
Any ideas???
Hey Jakob,
Here you go http://our.umbraco.org/projects/developer-tools/standard-values-in-umbraco
Rich
Ahh, or did you mean the API?
DocumentType textPageType; Document myPage; textPageType = DocumentType.GetByAlias("DocTypeName"); myPage = Document.MakeNew("NameOfNode", textPageType, User.GetUser(0), parentNodeID); myPage.getProperty("stock").Value = "0"; myPage.Publish(User.GetUser(0)); umbraco.library.UpdateDocumentCache(myPage.Id);
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
Set property on Document.New
I am working on a stock status, and I need the stock property to be set to 0 when a new document of a specific doctype I created.
Any ideas???
Hey Jakob,
Here you go http://our.umbraco.org/projects/developer-tools/standard-values-in-umbraco
Rich
Ahh, or did you mean the API?
Rich
is working on a reply...