Clean Or Hide Old Blog And Calendar Entries

Version 5.1 by Clemens Robbenhaar on 2019/08/11 12:38

cogClean or hide old entries in your blogs or calendars
TypeXAR
CategoryOther
Developed by

Clemens Robbenhaar

Rating
0 Votes
LicenseGNU Lesser General Public License 2.1

Description

This extensions allows you to bulk hide or delete entries in the blogs and calendars of your wiki. (If you have neither if these applications installed, this extension is of no use for you.)

If your wiki is running for a longer time you might have the effect that a lot of old blog or calendar entries show up in the search results while being no longer relevant. (The relevance of course depends on how your users use the blog and calendar.) This extension allows you to bulk delete entries from these applications older than a given amount of days (preset to 365 days). If you do not want to delete them, then you can also hide them, so only users with the "display hidden documents" in their profile will see them.
 If you want to remove the entries to save up disk space, you also need to remove them from the recycle bin afterwards. This can be done e.g. with the Admin Tools Application.

After installing the extension you should have a new section in the Wiki Administration in the category "Other". (You might need to reload the Admin UI after installing before you see it. Alternatively you can go to .../XWiki/CleanOrHideOldBlogAndCalendarEntries/ directly to see the UI. When installed this page is only accessible to admins.

The page shows a livetable of entries older than the given amount of days (actually the time when they were last modified, not the date of the blog post or calendar entry. If you have neither of these extensions installed you will just see an empty page.

You can either choose to delete/hide only the items you see in the livetable, or by checking a checkbox, to delete/hide all entries of the given type.

Some issues to consider:

  • if you have your options set to "show hidden documents", then hiding some entries does not remove them from the list
  • if you have your options set to not show hidden documents, then already hidden entries will not show up for deletion or hiding.

Note: screenshots will be added as time permits. 

The current implementation has a bug: if you reload the page while having paged though the entries, the entries about to be deleted or hidden are out of sync with the one displayed in the livetable. Please do not do that.

Prerequisites & Installation Instructions

We recommend using the Extension Manager to install this extension (Make sure that the text "Installable with the Extension Manager" is displayed at the top right location on this page to know if this extension can be installed with the Extension Manager). Note that installing Extensions when being offline is currently not supported and you'd need to use some complex manual method.

You can also use the following manual method, which is useful if this extension cannot be installed with the Extension Manager or if you're using an old version of XWiki that doesn't have the Extension Manager:

  1. Log in the wiki with a user having Administration rights
  2. Go to the Administration page and select the Import category
  3. Follow the on-screen instructions to upload the downloaded XAR
  4. Click on the uploaded XAR and follow the instructions
  5. You'll also need to install all dependent Extensions that are not already installed in your wiki

Release Notes

v1.0

Initial version

Tags:
    

Get Connected