Announcing apostropheWorkflowPlugin

95 views
Skip to first unread message

Tom Boutell

unread,
May 21, 2012, 3:37:44 PM5/21/12
to apostr...@googlegroups.com
Apostrophe's philosophy is to help everyone contribute to websites
more easily. However, some projects do have a firm requirement that
content be approved by appropriate persons before it goes live. The
Apostrophe workflow plugin is a straightforward solution to that
problem.

The workflow plugin ensures that all slot edits are approved by
someone with the admin credential before they go live.

Those with edit privileges who do not have the admin credential can
edit content, but their changes are not immediately live, and they
cannot make them go live on their own.

Everyone with editing privileges sees a new "workflow toolbar." The
workflow toolbar indicates whether you are in draft mode or public
mode. In draft mode, you can edit content, but it does not immediately
become visible to the public. In public mode, you can see what is
currently visible to the public.

Those with admin privileges will also see an "Apply Changes" button in
the workflow toolbar. When this button is pressed, all of the changed
content currently visible in the browser is synced to the published
version of the website. Those with mere editing privileges won't see
this button, so their content cannot become publicly visible until an
appropriate person approves it.

Note that these rules apply to all editing of Apostrophe slots and
areas that are visible in the browser. The content of a blog post or
an event still must be approved.

For more information check out the appropriate page in our wiki:

http://trac.apostrophenow.org/wiki/ManualWorkflowPlugin

Note that a schema migration is involved (but the apostrophe:migrate
task takes care of it for you as always).

We think this plugin is a smart solution to a tough problem. We look
forward to hearing about your experiences with it.

--
Tom Boutell
P'unk Avenue
215 755 1330
punkave.com
window.punkave.com

Giles Smith

unread,
May 23, 2012, 5:37:22 AM5/23/12
to apostr...@googlegroups.com
Hi Tom,

Thanks for this plugin, it is exactly what we are looking for however the blog/events admin area doesn't seem to work properly after i install it.

All of the Apostrophe UI elements (Add Content, Edit, Move Up/Down Delete etc) are missing. Effectively I can't add content to any blog/events posts. There are no JS errors, the markup for them is missing.

I have quickly looked at the $edit variable is set to true when it is sent to the standardArea Component and followed that through the code until I got to the a_area_cache_wrapper() function where it still remains true.

I have tried this on both the sandbox and one of our current websites.

Just one other small thing, in the installation instructions you haven't mentioned enabling the module or adding the JS to the view.yml.

Other than that it seems to work perfectly on normal pages from the testing we have done so far. Are there any plans to create a list of changes waiting for approval?

Cheers
Giles

Giles Smith

unread,
May 23, 2012, 5:58:24 AM5/23/12
to apostr...@googlegroups.com
Ahh no, my mistake!! I was in public mode. It is all working fine :)

Čaniga Stanislav

unread,
May 23, 2012, 11:30:04 AM5/23/12
to apostr...@googlegroups.com
REMOVE ME

Ashley

unread,
Dec 6, 2012, 3:33:25 PM12/6/12
to apostr...@googlegroups.com
So I am attempting to play with the plugin.
Installed it.
Added to the END of the ProjectConfiguration.class.php
I added the JS to the view.
Ran the migrate task.
Add some styling to the buttons.
It shows the site in public mode (no edit buttons).

When I click draft it blows up:

500 | Internal Server Error | sfConfigurationException

The module "aWorkflow" is not enabled.


Any ideas?


Giles Smith

unread,
Dec 6, 2012, 3:35:22 PM12/6/12
to apostr...@googlegroups.com

Did you enable the module in your settings.yml?

Ashley

unread,
Dec 6, 2012, 3:41:29 PM12/6/12
to apostr...@googlegroups.com
Just read your previous posts and tried that and it got it working for me. Thank you!
Reply all
Reply to author
Forward
0 new messages