Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 11 additions & 1 deletion public/js/pimcore/object/object.js
Original file line number Diff line number Diff line change
Expand Up @@ -1105,6 +1105,7 @@ pimcore.object.object = Class.create(pimcore.object.abstract, {
type: this.data.general.type,
modificationdate: this.data.general.modificationDate,
creationdate: this.data.general.creationDate,
versiondate: this.data.general.versionDate,
usermodification: this.data.general.userModification,
usermodification_name: this.data.general.userModificationFullname,
userowner: this.data.general.userOwner,
Expand All @@ -1116,6 +1117,15 @@ pimcore.object.object = Class.create(pimcore.object.abstract, {
showMetaInfo: function () {
var metainfo = this.getMetaInfo();

let extraDates = [];
if (metainfo.versiondate && metainfo.versiondate !== metainfo.modificationdate) {
extraDates.push({
name: "publishdate",
type: "date",
value: metainfo.versiondate
});
}

new pimcore.element.metainfo([
{
name: "id",
Expand All @@ -1140,7 +1150,7 @@ pimcore.object.object = Class.create(pimcore.object.abstract, {
name: "modificationdate",
type: "date",
value: metainfo.modificationdate
}, {
}, ...extraDates, {
name: "creationdate",
type: "date",
value: metainfo.creationdate
Expand Down
1 change: 1 addition & 0 deletions translations/admin.en.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ classid: "Class ID"
parentid: "Parent ID"
mimetype: MIME-Type
creationdate: "Creation Date"
publishdate: "Publish Date"
usermodification: "User Modification"
userowner: Owner
languages: Languages
Expand Down
Loading