View Source Bonfire.Pages.Acts.Page.Create (Bonfire v0.9.10-classic-beta.169)

Creates a changeset for publishing a page

Epic Options:

  • :current_user - user that will create the page, required.
  • :page_attrs (configurable) - attrs to create the page from, required.
  • :page_id (configurable) - id to use for the created page (handy for creating activitypub objects with an id representing their reported creation time)

Act Options:

  • :id - epic options key to find an id to force override with at, default: :page_id
  • :as - key to assign changeset to, default: :page.
  • :attrs - epic options key to find the attributes at, default: :page_attrs.