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'm trying to, on copy, to reset a couple of values. Works like a charm on everything but the Umbraco.MultiNodeTreePicker. Anyone else noticed this? And can someone please tell me why it seems like it's just ignoring it when it comes to that specific type of property?
private void ContentService_Copied(IContentService sender, CopyEventArgs<IContent> e)
if (e.Original.ContentType.Alias == "productPage")
It should work, do you have right aliases? Maybe some other code that uses events?
No other code that uses events, except on publishing, I check some things.
I guess I could try and set the value to something other then null, but not quite sure as to what. empty string brings the same result.
The version I'm using is 7.5.11 btw, don't think I mentioned that before.
Seems to work just fine when I just copy the one page (do not include the descendants). If I do include the decendants it just doesnt seem to get saved.
Or could it be me just not seeing something? Just feels like this should work... :/
Actually, I managed to work around it. Changed the event from
Then it just started working as expected. :P Still seems to be something amiss, but no matter for my purposes :)
Sorry to bother you all.
Great finding, glad that you fixed this issue! Have a nice day.
When it's copied, it means that it's already stored.
So you need to save the item.
When using the copying => you do not need to save the item.
is working on a reply...
Write your reply to:
Image will be uploaded when post is submitted