Clean Or Hide Old Blog And Calendar Entries

Version 8.22 by Clemens Robbenhaar on 2021/03/08 00:03

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

Clemens Robbenhaar

Active Installs6
Rating
0 Votes
LicenseGNU Lesser General Public License 2.1

Installable with the Extension Manager

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 make them disappear from the list; however this happens because their modification date is updated. If you set the day range to zero, you will still see them. 
  • if you have your options set to not show hidden documents, then already hidden entries will not show up for deletion or hiding.
  • if the entries are hidden they usually still show up in the overview of the application; blog entries will be show greyed out if hidden. This effect is a bug or feature of the application and not a bug of this extension.  

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 ones 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.1

Do not list recurrent events for deletion or hiding. (Requires MoccaCalendar in version 2.7 or later.)

v1.0

Initial version

Get Connected