Uploaded image for project: 'Hippo CMS'
  1. Hippo CMS
  2. CMS-15792

Add publishedBy to the published document and show it in info

    XMLWordPrintable

Details

    • New Feature
    • Status: Open
    • Normal
    • Resolution: Unresolved
    • None
    • 15.7.0, 16.1.0
    • None
    • None
    • Orion
    • Ready for refinement
    • Undetermined

    Description

      Per CMS-15254, property hippostdpubwf:publishedBy was introduced and stored only in version history, then shown in the revision history dialog.

      We can easily add the property to the published document variant, similar to the publication date and then show it in the document information dialog and anywhere else we like.
      E.g.

      This code should work in the workflow:
      org.onehippo.repository.documentworkflow.task.ConfigVariantTask#doExecute

      if (isApplyPublished()) {
        getVariant().setPublicationDate(new Date());
        getVariant().setPublishedBy(getWorkflowContext().getUserIdentity()); // introduce #setPublishedBy too
      }
      

      Attachments

        Issue Links

          Activity

            People

              deniz.ergun Deniz Ergun
              jhoffman Jeroen Hoffman
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated: