Using the Moderation States

If a content item's moderation-state is set to either rejected or pending then it cannot be retrieved by the article:list tag unless onlyLive is set to false. Usually you would want rejected content to be viewable by the person who wrote it (on his/her profile page most likely), but not by other users browsing the blog writer's page.

You can read a content item's moderation state as follows:

<dashboard:moderationLog
  id="moderationLog"
  articleId="${currentArticle.id}"
  moderationType="edited" />
<core:if test="${fn:length(moderationLog) > 0}">
  This blog has been edited by editorial staff,
  ${moderationLog[0].userName}</a> on
  ${moderationLog[0].creationDate}
</core:if>