mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-15 11:44:58 +08:00
Adding back versioning properties
They are needed by one of our contrib module --HG-- branch : dev
This commit is contained in:
@@ -36,6 +36,15 @@ namespace Orchard.Mvc.ViewModels {
|
||||
public string TemplateName { get; set; }
|
||||
public string Prefix { get; set; }
|
||||
public ZoneCollection Zones { get; private set; }
|
||||
public bool IsPublished {
|
||||
get { return Item != null && Item.VersionRecord != null && Item.VersionRecord.Published; }
|
||||
}
|
||||
public bool IsLatest {
|
||||
get { return Item != null && Item.VersionRecord != null && Item.VersionRecord.Latest; }
|
||||
}
|
||||
public bool IsDraft {
|
||||
get { return IsLatest && !IsPublished; }
|
||||
}
|
||||
}
|
||||
|
||||
public class ContentItemViewModel<TPart> : ContentItemViewModel where TPart : IContent {
|
||||
|
Reference in New Issue
Block a user