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
Hi.
We need to set pictures for members from a different source. So we decided to add an external interface where you can set member properties.
Set a normal string property is now easy. But seting a media is difficult.
media = Umbraco.Core.Models.Media //type var objProperty = _member.GenericProperties.SingleOrDefault(p => p.PropertyType.Alias == propertyAlias); if (objProperty == null) return false; objProperty.Value = media; _member.getProperty(propertyAlias).Value = media; _member.Save(); _member.XmlGenerate(new XmlDocument());
I cannot figure out what should be wrong :-(
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
Set Member Media Property
Hi.
We need to set pictures for members from a different source. So we decided to add an external interface where you can set member properties.
Set a normal string property is now easy. But seting a media is difficult.
I cannot figure out what should be wrong :-(
is working on a reply...