This code saves nodes, but how to restore from the bin? Umbraco 4.7.2
var bin = new RecycleBin(RecycleBin.RecycleBinType.Content);
var totalTrashedItems = bin.GetDescendants().Cast<dynamic>();
foreach (var totalTrashedItem in totalTrashedItems)
{
var doc = new Document(totalTrashedItem.Id);
if (doc.IsTrashed)
{
//doc.PublishWithChildrenWithResult();
doc.Save();
doc.PublishWithResult(new User(0));
}
}
SQL - restore nodes from the recycle bin for Umbraco 4
SQL help needed can somebody help with the query that would restore nodes from the recycle bin for Umbraco 4 ? :slightlysmilingface:
This task makes me crazy :)
This code saves nodes, but how to restore from the bin? Umbraco 4.7.2
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.