Updating a media node property Options
Tim_Int
Posted: Monday, September 29, 2008 8:24:15 PM
Rank: Newbie

Joined: 9/12/2008
Posts: 23
I know it's possible to directly change and publish a change to a document node like so:

Code:

umbraco.cms.businesslogic.web.Document doc = umbraco.cms.businesslogic.web.Document(id);

doc.getProperty("field").Value = _value;

doc.Publish(new umbraco.BusinessLogic.User(0));
umbraco.library.PublishSingleNode(doc.Id);


But is there an equally simple way to update a property of a media node? I'm imagining using a property as a download counter, by first checking if it has been initialized to a number, and then incrementing it, before redirecting the browser to the umbracoFile property URL.
Users browsing this topic
Guest


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.