WIP ... Fixes: #U4-1666, Updates documentService to not have to manually
refresh content cache (and fix the unpublishing too since that logic wasn't correct) Adds DebuggerDisplay support to ContentBase and Entity for better debugging info. Adds new internal publishing methods to support publishing all children or only children previously published. This also adds new support for getting a published result back even with bulk publishing. Updates the publish dialog with new code and to use the new API based on issue #U4-1669. Adds UmbracoUser property to AuthenticatedUmbracoController, Adds all common properties to the abstract UmbracoController. Changes the legacy Document to allow content cache to be automatically refreshed (based on events)
This commit is contained in:
@@ -19,7 +19,26 @@ using Umbraco.Core;
|
||||
namespace Umbraco.Web.WebServices
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// <summary>
|
||||
/// A REST controller used for the publish dialog in order to publish bulk items at once
|
||||
/// </summary>
|
||||
public class BulkPublishController : UmbracoAuthorizedController
|
||||
{
|
||||
/// <summary>
|
||||
/// Publishes an document
|
||||
/// </summary>
|
||||
/// <param name="documentId"></param>
|
||||
/// <returns>A Json array containing objects with the child id's of the document and it's current published status</returns>
|
||||
[HttpPost]
|
||||
public JsonResult PublishDocument(int documentId, bool publishChildren)
|
||||
{
|
||||
//var doc = Services.ContentService.GetById(documentId);
|
||||
//if (Services.ContentService.PublishWithChildren(doc, UmbracoUser.Id))
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// A REST controller used to save files such as templates, partial views, macro files, etc...
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
|
||||
Reference in New Issue
Block a user