Class CmsItemTemplateHistory
A saved version of a CmsItemTemplate. Every save of a template stores a copy here, so the
newest record is the current content; the server keeps the newest ELEMENT_HISTORY_LIMIT (default 5)
per tag, id and language.
public sealed record CmsItemTemplateHistory : ICmsItemTemplateHistory
- Inheritance
-
objectCmsItemTemplateHistory
- Implements
Properties
Attribute
The Attribute of the template at the time of that save.
[JsonPropertyName("attributeName")]
public string? Attribute { get; init; }
Property Value
- string
Changed
When this version was saved. The history lists newest first by this value.
[JsonPropertyName("changed")]
public DateTimeOffset Changed { get; init; }
Property Value
- DateTimeOffset
Content
The template's markup at the time of that save.
[JsonPropertyName("content")]
public string? Content { get; init; }
Property Value
- string
Created
The Created time of the template.
[JsonPropertyName("created")]
public DateTimeOffset Created { get; init; }
Property Value
- DateTimeOffset
Id
The id of this history record, assigned by the server.
[JsonPropertyName("id")]
public long? Id { get; init; }
Property Value
- long?
Language
The Language of the template; empty for the default.
[JsonPropertyName("language")]
public string? Language { get; init; }
Property Value
- string
Name
The Name (id) of the template. Serialized as name, unlike on the
template itself.
[JsonPropertyName("name")]
public string? Name { get; init; }
Property Value
- string
Owner
The Owner of the template at the time of that save.
[JsonPropertyName("owner")]
public string? Owner { get; init; }
Property Value
- string
Path
The Path of the template at the time of that save.
[JsonPropertyName("path")]
public string? Path { get; init; }
Property Value
- string
Tag
The Tag of the template.
[JsonPropertyName("tagName")]
public string? Tag { get; init; }
Property Value
- string
UserId
The user who saved this version.
[JsonPropertyName("userId")]
public string? UserId { get; init; }
Property Value
- string