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
Document doc = Document.MakeNew(name, dt, author, parentid);doc.getProperty("messahe").Value = "Hello World";doc.Save();umbraco.library.UpdateDocumentCache(doc.Id);
To make a new document/node, it makes the doc/node no problem, but it does'nt save property data.Any ideas?
Ah you have to use doc.setProperty,
but weird how:
Media media = new Media(startMedia.Id);media.getProperty("galleryPassword").Value = password.ToString();media.Save();
Can I ask, how new is doc.setProperty?
I didn't know that method existed as I often use doc.getProperty to set values and works in 4.7.x.
is working on a reply...
Write your reply to:
Image will be uploaded when post is submitted