Plug-in Reset all draft pages

With this plug-in you can get rid of all pages you (or an author) has in draft currently. You can with this plug-in get rid of all not ready and unwanted pages with a single click.

There are 2 reasons why a page can be in draft: it is newly created and it has been updated. This plug-in handles both in a different way:

  • all newly created pages will be deleted again
  • for all updated pages an undo changes will triggered

After this plug-in finishes you list of draft pages is empty!

This plug-in can be called from authors as well, you only have to integrate it into SmartEdit.

The list of draft pages can be quite crowded for the following reasons:

  • many pages are created by API or plug-ins by authors you want to get rid of (maybe they are not correctly created)
  • authors often collects unwanted pages in draft state they don’t want anymore. From an amount on they don’t want do it one by one, because of the high workload.

This plug-in makes it easy for you to clear your draft pages all together with one click only. This is especially of great benefit if the author did not enter the mandatory elements!

Location in SmartTree
You found the plug-in under Administer Project Structure > Project. You can use it on SmartEdit as well, but I can not recomend a plug-in target for this plug-in. At Hapag-Lloyd I added it to the Tasks dialog of MS as a little hack.

How it works
First you need to confirm, that you want to get rid of all your pages in state draft of current project. The plug-in did not provide the list of draft pages.

After clicking on button Reset all draft pages the plug-in will come back to you with this result screen.

It lists all reset pages together with the action (undo or delete). From all pages it displays the headline and page ID.

It present the totals how many pages were deleted and on how many undo changes were called.

There can still be pages in draft afterwards, if the authorization of the the users has changed in between. This is the reason, why it checks again how many pages are even afterwards in draft.

This plug-in can be installed using the combined setup routine for all jRQL API based plug-ins. Follow the instruction in this blog to download the installer and configure the plug-ins you want.

Make it available to SmartEdit authors
I think the natural place within SmartEdit would be the Tasks dialog, Unfortunately there is no way to add a plug-in into this dialog.

But you can easily make it available for instance in the page menu (ioDevDialogPageActions), still it is not the right context for it.

For API developers
The functionality is based solely on the functions to get all draft pages from the currently connected user and to reset a page.

Post a comment or leave a trackback: Trackback URL.


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: