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
Any chance BulkManager will - in a future release - allow a user to bulk edit properties? Just like changing the Template, this would be hugely helpful!
Yes that is on the list of things to implement, propably v2.
Thanks for suggesting,
Which v2 are you talking about and can you elaborate the usage of Bulk Manager??
Is it Possible to save bulk propertyTypes which consumes minimum time for saving?
Sorry this was a bit too big for V2 and not implemented, still on the list.
Can you suggest some other solution for saving bulk propertyTypes in documentTypes programmatically that takes minimum amount of time.
Currently there is no solution for that other than build yourself that's why it's still on the list of things to built.
For anyone else stumbling upon this thread, here's my crude way of bulk editing content.
Simply paste this into a template, locally, run it once and remove. (or some other way you choose, the result is the same)
// Select the pages you want to edit (this is a custom doctype)
var posts = Model.Descendants<Blogpost>("blogpost").ToList();
// Get the content service for manipulating the content
IContentService cs = Services.ContentService;
// Get the content as IContent
IEnumerable<IContent> cList = cs.GetByIds(posts.Select(x => x.Id));
// Loop over and save
foreach (IContent cNode in cList)
// Set the new values here
// Save || SaveAndPublish the node
Query the pages you want to edit however you want, add the properties you'd like to edit, and voila.
REMEMBER: If you have a lot of nodes, this can take quite a while, as it queries the database for each node (to save and publish). You may wanna filter the results, and take a backup of your database before you begin.
suggestion, make raiseEvents false
cs.SaveAndPublish(cNode, raiseEvents: false);
is working on a reply...
Write your reply to:
Image will be uploaded when post is submitted