Variant names, availability, etc

This commit is contained in:
Stephan
2018-04-18 11:14:08 +02:00
parent 58e4e2398a
commit 46487fa466
14 changed files with 294 additions and 150 deletions

View File

@@ -29,9 +29,8 @@ namespace Umbraco.Web.Models.Mapping
{
Language = x,
Mandatory = x.Mandatory,
//fixme these all need to the variant values but we need to wait for the db/service changes
Name = source.GetName(x.IsoCode),
Exists = source.HasVariation(x.Id), //TODO: This needs to be wired up with new APIs when they are ready
Name = source.GetName(x.Id),
Exists = source.HasVariation(x.Id), // fixme - what's the purpose? "exists" or "published"? exists is a new thing?
PublishedState = source.PublishedState.ToString(),
//Segment = ?? We'll need to populate this one day when we support segments
}).ToList();