MishkaCmsCore.Runtime.Resources.Changes.PublishErrorPageDraft (Mishka CMS Core v0.0.3)

Copy Markdown View Source

After a :publish / :master_publish of a MishkaCmsCore.Runtime.ErrorPageDraft, writes the draft's fields (including the whole error_pages collection) to the live MishkaCmsCore.Runtime.ErrorPage — creating it when the draft has no source_error_page_id, otherwise updating it.

Scoped to the draft's site (tenant: draft.site_id, authorize?: false), in an after_action, so a write failure rolls the whole publish transaction back. The ErrorPage analogue of MishkaCmsCore.Runtime.Resources.Changes.PublishPageDraft.

Summary

Functions

What publishing draft writes over the error page it was made from: every field it carries but the error page's code. See MishkaCmsCore.Runtime.Resources.Changes.PublishPageDraft.carried/1.

Functions

carried(draft)

@spec carried(struct()) :: map()

What publishing draft writes over the error page it was made from: every field it carries but the error page's code. See MishkaCmsCore.Runtime.Resources.Changes.PublishPageDraft.carried/1.