Not logged in. · Lost password · Register
Forum: General Help and Support Features and Functionality RSS
Find old pages, which were edited by me
Avatar
guettli #1
User title: guettli
Member since Apr 2017 · 7 posts
Group memberships: Members
Show profile · Link to this post
Subject: Find old pages, which were edited by me
I want to clean up our dokuwiki.

During the last ten years I created and edited a lot of pages.

I want to clean up all pages which were not touched since three years.

I guess a lot of them can get deleted.

But I am not the only user. I only want to work on the pages
where I did create the most content.


How would you do this?

Are there any tools which could help me to do this?
Avatar
virk #2
Member since Aug 2008 · 644 posts · Location: Aachen, Germany
Group memberships: Members
Show profile · Link to this post
My suggestion would be: Once you find a page you want to delete, delete it. Do not try to automate the process.
Avatar
guettli #3
User title: guettli
Member since Apr 2017 · 7 posts
Group memberships: Members
Show profile · Link to this post
Subject: I have a dead-line
Hi Virk.

thank you for your reply.

I did what you said since ten years. If I saw old stuff I cleaned up.
Either I deleted my old stuff or I wrote to the author.

But now it is different: I am leaving. I will work for a new company in six weeks.

I would like to delete now, since it is much easier for me to decide what is old
and what not.
Avatar
virk #4
Member since Aug 2008 · 644 posts · Location: Aachen, Germany
Group memberships: Members
Show profile · Link to this post
I have our wiki running here on our own server. If I had your "problem" I would try to directly look at the server's data directory and find all the files which were not changed within the last 3 years. These perhaps could then be deleted, but links in the wiki will then point to non-existing pages. Secondarily you will need to re-index your wiki.

How many pages (roughly) are we talking about?
Avatar
guettli #5
User title: guettli
Member since Apr 2017 · 7 posts
Group memberships: Members
Show profile · Link to this post
Thank you for your hint.

I could find the matching files via the operating system.

Then delete the pages via wiki-gui and then I can see if the pages still gets references somewhere.

The number of page .. I don't know. Maybe 60.
Avatar
StarArmy #6
Member since Nov 2011 · 120 posts
Group memberships: Members
Show profile · Link to this post
If each page you made has a link to your user page on the wiki (if you use user pages) then maybe you could go through the list of backlinks to your user page.
Avatar
ach (Administrator) #7
Member since May 2006 · 1954 posts · Location: Folkestone, UK
Group memberships: Administrators, Members, Super Mods, Wiki Managers
Show profile · Link to this post
I'd also find this feature very useful, although for different reasons.

I'm sure you could do something sophisticated with the changelog.
At the very least you could search for your username in those files.
Avatar
guettli #8
User title: guettli
Member since Apr 2017 · 7 posts
Group memberships: Members
Show profile · Link to this post
I wrote a little python script which reads the ".changes" files in the meta-directory.

I made it available here: https://github.com/tbz-pariv/find_old_pages_in_dokuwiki

Feedback is welcome.
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: 2020-01-23, 05:57:11 (UTC +01:00)