Recently Updated Pages Plugin

Discuss about the development and customization of the Wiki and its Plugins.

Do you like it/find it useful?

Yes
11
92%
No
1
8%
 
Total votes : 12

Recently Updated Pages Plugin

Postby dodexahedron » Tue Apr 03, 2007 7:51 am

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.
Last edited by dodexahedron on Wed Apr 04, 2007 6:45 am, edited 1 time in total.
dodexahedron
 
Posts: 51
Joined: Tue Mar 13, 2007 6:16 pm

Postby dodexahedron » Tue Apr 03, 2007 8:57 pm

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.
dodexahedron
 
Posts: 51
Joined: Tue Mar 13, 2007 6:16 pm

Postby dodexahedron » Wed Apr 04, 2007 5:58 am

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.
dodexahedron
 
Posts: 51
Joined: Tue Mar 13, 2007 6:16 pm

Postby eric.stephani » Fri Jun 01, 2007 4:30 pm

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.
eric.stephani
 
Posts: 59
Joined: Mon Apr 30, 2007 7:49 pm

Postby eric.stephani » Fri Jun 01, 2007 4:53 pm

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.
eric.stephani
 
Posts: 59
Joined: Mon Apr 30, 2007 7:49 pm

Postby ViralUnity » Tue Sep 11, 2007 3:48 am

Very nice.

Thank you.
ViralUnity
 
Posts: 3
Joined: Mon Sep 10, 2007 12:36 am

Postby andrewheins » Tue Sep 11, 2007 5:53 pm

Is there anyway to modify this to allow for sectional or categorical considerations.

"Recent Updates in Section A"?
andrewheins
 
Posts: 1
Joined: Tue Sep 04, 2007 9:38 pm


Return to Wiki/Providers Development/Customization

Who is online

Users browsing this forum: Ask Jeeves [Bot] and 0 guests