* Modified PostPublishById to handle content that is culture variant. Added model and modified the javascript function that call the api endpoint.
* Added separate method for publishing with cultures. Added if else statment to js function.
* Moved check for all cultures being published to the top of PostPublishByIdAndCulture. Added parameter to ngDoc. Added Where Query.
(cherry picked from commit 37db3ae3da)
This commit is contained in:
committed by
Sebastiaan Janssen
parent
154021801e
commit
273e7708e5
16
src/Umbraco.Core/Models/ContentEditing/PublishContent.cs
Normal file
16
src/Umbraco.Core/Models/ContentEditing/PublishContent.cs
Normal file
@@ -0,0 +1,16 @@
|
||||
using System.Runtime.Serialization;
|
||||
|
||||
namespace Umbraco.Cms.Core.Models.ContentEditing;
|
||||
|
||||
/// <summary>
|
||||
/// Used to publish content and variants
|
||||
/// </summary>
|
||||
[DataContract(Name = "publish", Namespace = "")]
|
||||
public class PublishContent
|
||||
{
|
||||
[DataMember(Name = "id")]
|
||||
public int Id { get; set; }
|
||||
|
||||
[DataMember(Name = "cultures")]
|
||||
public string[]? Cultures { get; set; }
|
||||
}
|
||||
Reference in New Issue
Block a user