Start updating the model/controller for editing variants in the back office and wiring up the angular side of things

This commit is contained in:
Shannon
2018-04-03 19:25:43 +10:00
parent 271a100759
commit e7bc4986a5
14 changed files with 151 additions and 88 deletions

View File

@@ -11,6 +11,13 @@ namespace Umbraco.Web.Models
{
public static class ContentExtensions
{
public static bool HasVariation(this IContent content, int langId, string segment = null)
{
//TODO: Wire up with new APIs
return false;
//return content.Languages.FirstOrDefault(x => x == langId);
}
/// <summary>
/// Gets the culture that would be selected to render a specified content,
/// within the context of a specified current request.