Not logged in. · Lost password · Register
Forum: General Help and Support General Stuff RSS
Create a report (at call) of pages by creation/edit date or date range
Avatar
ericinadelaide #1
Member since Jul 2019 · 3 posts
Group memberships: Members
Show profile · Link to this post
Subject: Create a report (at call) of pages by creation/edit date or date range
I have Googled and searched these forums but I can't find a simple search a Wiki to produce a report of pages created or edited on a date or within a date range.

I want to use this for version control where I can find and revise or clean out old documents/pages.

Is there a plugin or a script that I could run manually or automate it to run regularly/periodically?

Any help is much appreciated
Avatar
MartinR #2
Member since Jul 2015 · 161 posts · Location: UK
Group memberships: Members
Show profile · Link to this post
Not an answer I'm afraid, but two suggestions.
1) A directory listing will give you the time of the last change (ls -l for *NIX, dir something for Win).
2) Look in the meta directoy and you'll find two or three files corresponding to each page in the wiki.  Look in the .changed file and you'll see a simple listing of each change.  The first field is the date*, not sure about the next (mine seem to always be ::1), the C for created, E for edited, the path to the page, the user and finally the comment.

*The date field is the number of seconds since system zero.  Use date(1) to convert:
$ cat start.changes
1498084488    ::1    C    bells:start    martinr    created   
1498861751    ::1    E    bells:start    martinr    Hook for new set
$ date --date='@1498861751'
Fri 30 Jun 23:29:11 BST 2017

Which shows that this file was last edited on 30/6/2017.  I'm sure a grep script of a bit of Perl/python/php will give you your report.
Avatar
ericinadelaide #3
Member since Jul 2019 · 3 posts
Group memberships: Members
Show profile · Link to this post
Thanks, Martin - it gives me a start

I sort of thought someone would have already created something.  Wikis are notorious for amassing old/obsolete pages and a report like this would be a handy way to spot pages that needed review/updating or deletion.

If I come up with something fancy and self contained I will spread the word :)
Avatar
turnermm (Moderator) #4
Member since Oct 2009 · 4734 posts · Location: Canada
Group memberships: Global Moderators, Members, Super Mods
Show profile · Link to this post
In reply to post #2
::1 is IPv6 for localhost.  So after the date stamp comes the IP address of the machine from which  the change originated.
Myron Turner
github: https://github.com/turnermm
plugins, templates: http://www.mturner.org/devel
Avatar
MartinR #5
Member since Jul 2015 · 161 posts · Location: UK
Group memberships: Members
Show profile · Link to this post
 :blush: Obvious when you get a shove.  I'd tried to understand it in terms of screens and couldn't see it!  Thanks, Martin
Avatar
andi (Administrator) #6
User title: splitbrain
Member since May 2006 · 3501 posts · Location: Berlin Germany
Group memberships: Administrators, Members
Show profile · Link to this post
In reply to post #1
Quote by ericinadelaide on 2019-07-23, 09:13:
Is there a plugin or a script that I could run manually or automate it to run regularly/periodically?

Check the watchcycle plugin
Read this if you don't get any useful answers.
Lies dies wenn du keine hilfreichen Antworten bekommst.
Avatar
ericinadelaide #7
Member since Jul 2019 · 3 posts
Group memberships: Members
Show profile · Link to this post
Quote by andi on 2019-07-25, 21:27:
Quote by ericinadelaide on 2019-07-23, 09:13:
Is there a plugin or a script that I could run manually or automate it to run regularly/periodically?

Check the watchcycle plugin

And that is a good one, too!  Thank you.

Eric
Close Smaller – Larger + Reply to this post:
Verification code: VeriCode Please enter the word from the image into the text field below. (Type the letters only, lower case is okay.)
Smileys: :-) ;-) :-D :-p :blush: :cool: :rolleyes: :huh: :-/ <_< :-( :'( :#: :scared: 8-( :nuts: :-O
Special characters:
Go to forum
Imprint
This board is powered by the Unclassified NewsBoard software, 20150713-dev, © 2003-2015 by Yves Goergen
Current time: 2019-12-08, 23:01:25 (UTC +01:00)