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

Support XPage Layout handled correctly wrt newly created documents (drafts)

    XMLWordPrintable

Details

    • New Feature
    • Status: Closed
    • Normal
    • Resolution: Fixed
    • None
    • 14.3.0
    • None

    Description

      When a document is created new, only a draft variant exists. However, the document variant should already contain the hst:page layout.

      Since hst:page child node is by default skipped between unpublished and draft, it means that after the first commit editable instance when an unpublished is created, the hst:page child node should move from the draft to the unpublished

      Implementation detail

      Most likely it is simplest to fix this in CopyVariantTask where when copying from draft to unpublished is done and there is not yet a unpublished, make sure to move every child node that has the mixin 'hippstd:skipdraft' from the draft to the unpublished. Make sure to add a test for this in DocumentWorkflowSaveUnpublishedTest

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              mrop Michiel Rop
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: