Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Classes/Domain/Task/Review/ReviewTask.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,8 @@ final class ReviewTask implements TaskInterface
* @param \DateTimeImmutable $scheduledTime
* @param ActionStatusType $actionStatus
* @param Agent $agent
* @param NodeInterface|null $object
* @param UriInterface $target
* @param TraversableNodeInterface|null $object
* @param UriInterface|null $target
*/
public function __construct(
TaskIdentifier $identifier,
Expand Down
1 change: 1 addition & 0 deletions Documentation/00_Index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
1. [Configuration](./Documentation/01_Configuration.md)
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
1. [Configuration](./Documentation/01_Configuration.md)
1. [Configuration](./01_Configuration.md)

32 changes: 32 additions & 0 deletions Documentation/01_Configuration.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
<div align="center">
<a href="./00_Index.md">Index</a>
</div>

---

# 1. Configuration

Bitzer review tasks can be set up completely via configuration. There are two mixin NodeTypes provided
that can be used by any custom node type that should have review capabilities:
```yaml
'Acme.Site:Document.NewsArticle':
superTypes:
'Sitegeist.Bitzer.Review:Mixin.Reviewable': true
'Sitegeist.Bitzer.Review:Mixin.Setting.Review': true
```
The `Reviewable` mixin flags the node type as reviewable, while the `Setting.Review` mixin provides the necessary properties:

![Screenshot of Inspector Editor](inspector.png)

Whenever a node of a node type configured as above is published, a review task will be automatically created
using the selected agent and interval. After the interval has passed, it will appear in Bitzer's
task overview module for the agent and can be activated there. Activation will set the task to state `active`
and redirect the user to the node in the Neos backend view. Once the node is reviewed,
the task can either be manually completed or will be automatically completed when the node is published again,
triggering the creation of a new review task for the future.

---

<div align="center">
<a href="./00_Index.md">Index</a>
</div>
Binary file added Documentation/inspector.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
19 changes: 19 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# Sitegeist.Bitzer.Review

> The review task plugin for the Bitzer content lifecycle task manager for Neos CMS
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
> The review task plugin for the Bitzer content lifecycle task manager for Neos CMS
> The review task plugin for the Sitegeist.Bitzer content lifecycle task manager for Neos CMS


## Features

This package provides review tasks for Bitzer. They can be configured to be
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
This package provides review tasks for Bitzer. They can be configured to be
This package provides review tasks for Sitegeist.Bitzer. They can be configured to be

automatically created and completed on node publication as well as manually handled
via Bitzer's management module and command controller.
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
via Bitzer's management module and command controller.
via Sitegeist.Bitzer's management module and command controller.


## Installation

```
composer require sitegeist/bitzer-review
```

## Documentation

1. [Configuration](./Documentation/01_Configuration.md)