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!
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?
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)
@using Umbraco.Core;
@using Umbraco.Core.Models;
@using Umbraco.Core.Services;
@using System.Linq;
// 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
cNode.SetValue("umbracoNaviHide", false);
// Save || SaveAndPublish the node
cs.SaveAndPublish(cNode);
}
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.
Bulk edit property?
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!
Hi Chris,
Yes that is on the list of things to implement, propably v2.
Thanks for suggesting,
Richard
Hey Richard.
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.
Best,
Richard
Hey Richard,
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)
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
is working on a reply...