Administration question about revisions
is there any way to easily know the number of revisions of each article published in the wiki? this would make it easier for the administration to locate and purge very old revisions of each article.
Greetings
Comments
Log in or create an account to post a comment.
Re: Administration question about old revisions
see Database
page table
version_id-> $this->page['version_id']revisions-> $this->page['revisions']config table
pages_purge_time-> $this->db->pages_purge_timepages_purge_timein the Admin panel.revisionsholds the number of the available revisions for each page.You can write a own action to show and purge pages, which reaching a self defined threshold.
Re: Administration question about revisions
after a few headers trying to understand how actions and templates work.
I managed to place the revision numbers in the index as I find it useful to know for all users.
Files modified for this purpose:
to activate or deactivate it use the following line
{{pageindex reviews=0|1}}will show you only the revision number if there is no previous revision or otherwise both. (only for the administrator)
i already shared my modification for your review and opinion?
Greetings
Re: Administration question about revisions
I looked a bit what other actions can be taken as basis. You can take the
mostpopularormypagesaction, copy it and start from there. Take your time. For instance if you take mypages, you can reuse the tabs for sorting the pages afterrevisionsorversion_id. You can put the value in front and add a tab for the admin to do some selected actions. Additionally you can show some extra infos when hovering over a certain record.Re: Administration question about revisions
I didn't use those because I wanted a complete view of all the content of the wiki, not the most viewed nor a particular page. That's why I did it in the index to approve the consultation of all the available articles.
Re: Administration question about revisions
You just have to change the SQL query to change that, remove the user SELECT or the page LIMIT. Pagination is already in place.
Re: Administration question about revisions
I got your point. What I did was to copy
mypagesand call itadmin_reviewsto modify the SQL statements and remove the filter by the user.new action, I already sent it for review.
Re: Administration question about revisions
I tested the action locally, we should improve the action in a way a Admin can focus on certain issues and filter or sort all records accordingly.
Additionally we should add links to all workflow related action and handlers. I have some ideas, something like we have with filemeta / attachments / upload handler and the user action.
Re: Administration question about revisions
good, that's the idea to improve the action. remember that I am just understanding how wackowiki works inside