Reference

Submission

Whenever you're dealing with a submission in your template, you're actually working with a Submission object.

Properties

id

The ID of the submission.

owner

The Entry (opens new window) this submission was made on.

ownerId

The Entry (opens new window) ID this submission was made on.

ownerSiteId

The site ID for the entry this submission was made on.

isComplete

Whether the submission is considered complete. This can be done only through approving or revoking a submission.

isPending

Whether the submission is considered pending (a submission is currently waiting for approval/review).

dateCreated

The date this submission was submitted by an editor.

Methods

getReviews()

Returns a collection of Review objects.

getLastReview()

Returns the most recent (last-submitted) Review.

In addition, there are several other attributes and functions that are set at the submission level, but they in fact target the last (current) Review. They are available here for convenience.

editor

The user as the editor role, if applicable to the most recent (last-submitted) Review.

editorId

The ID of the user as the editor role, if applicable to the most recent (last-submitted) Review.

reviewer

The user as the reviewer role, if applicable to the most recent (last-submitted) Review.

reviewerId

The ID of the user as the reviewer role, if applicable to the most recent (last-submitted) Review.

publisher

The user as the publisher role, if applicable to the most recent (last-submitted) Review.

publisherId

The ID of the user as the publisher role, if applicable to the most recent (last-submitted) Review.

notes

The notes of this most recent (last-submitted) Review.

status

The status of this most recent (last-submitted) Review.

role

The role of this most recent (last-submitted) Review.