Page 1 of 1

Recently Updated Pages Plugin

PostPosted: Tue Apr 03, 2007 7:51 am
by dodexahedron
I have completely rewritten the RecentUpdatesList plugin to use regular expressions for matching, stringbuilders for its string building, raw html output (using unnumbered list, so the wiki engine doesn't have to further format the output of the plugin), and another asked-for parameter, which is the pages parameter.

The base form of the tag is {RecentUpdatesList}.
The parameter to limit the number of pages in this list is pages (or p, if you're lazy).
The parameter to limit the age of pages is days (or d).
You can use one or both of the parameters in the tag.

So the following are all valid:
{RecentUpdatesList}
{RecentUpdatesList days=3}
{RecentUpdatesList d=4}
{RecentUpdatesList pages=10}
{RecentUpdatesList p=15}
{RecentUpdatesList d=5 pages=10}

If you decide to be retarded and specify the same parameter multiple times in the same tag, it will simply use the last value of the parameter you specified.
So
{RecentUpdatesList d=10 d=15 d=20}
would give you the 20 most recently updated pages.

A dll and source code for this plugin is available here(dll) and here(VS 2005 project).

To compile the source, you must include a reference to the PluginFramework.dll.

Enjoy.

I will be doing the same to the NewestPages plugin.

PostPosted: Tue Apr 03, 2007 8:57 pm
by dodexahedron
I discovered a minor bug that shouldn't affect it, but is nonetheless a bug:
The URL of updated pages in the list has an extra slash after the mail site URL if your main site URL includes a trailing slash.

I'll fix it when I get to my dev machine later, unless someone else wants to patch it.

PostPosted: Wed Apr 04, 2007 5:58 am
by dodexahedron
This has been fixed and is now available at the same URLs as above.
Since the config page mandates the trailing slash, it is not necessary for the code to add a slash in the path.

PostPosted: Fri Jun 01, 2007 4:30 pm
by eric.stephani
Thanks for the update...

I noticed that when using the p parameter I am seeing the same results returned when the value is > 12.

Example, all of these are returning a list of 12 updates.

{RecentUpdatesList}

{RecentUpdatesList p=20}

{RecentUpdatesList p=25}

It seems that when p is < 12 the results returned are expected.

PostPosted: Fri Jun 01, 2007 4:53 pm
by eric.stephani
I noticed that this plugins is pretty much the same thing as the all pages list ordered by the date modified. I though that it would return a list of every update, ex if you update a page twice in a row, two entries in this list would show up.

PostPosted: Tue Sep 11, 2007 3:48 am
by ViralUnity
Very nice.

Thank you.

PostPosted: Tue Sep 11, 2007 5:53 pm
by andrewheins
Is there anyway to modify this to allow for sectional or categorical considerations.

"Recent Updates in Section A"?