Loading...
 
Features / Usability

Features / Usability


Filter Wiki pages by User

posts: 130

Can someone help me with a wiki plugin that will allow me to filter wiki pages by username? So for example, only show me wiki pages that have been created by a certain user(s).

Even better, is there a mechanism to show me wiki pages that have been assigned to a certain permission group?

Thanks for any assistance or angle you can provide.

posts: 214

In regards to show "pages that have been created by a certain user(s)", Wiki List Pages can show you the page creator and Last editor. To show those columns in the list pages report, go to Admin home, Wiki, Page Listings tab and select "Creator" and "Last modified by". Then go to Wiki, List Pages.

And there is a way to list all the things a particular user has contributed to.

First go to Admin home, Community, General Settings tab, and select "Show user's contribution on the user information page", and Change preferences.

Once that is set, go to Admin, Users. On the "Admin Users" page, at the right of the user's row there is an Image icon for User Information. Click on that Icon, and then, on the "User Information" page that comes up, click on the "User Contribution" tab.


posts: 130

Thanks for your quick response!

I was aware of the above, but looking more specifically to be able to filter by creator and/or modified date. So, on a wiki page and most likely using a plugin or module, I could show only wiki pages created and/or modified by a certain user?

Do you know of a way to get that specific?


posts: 214

Table tiki_history has the history of wiki page updates. It is where the wiki page contributor information comes from. If you have the SQL plugin enabled then you can extract the information:

By Page name
Copy to clipboard
{SQL(db=>local)} SELECT pageName, version, FROM_UNIXTIME(lastModif) as Date, user FROM tiki_history WHERE pageName = 'pagename' ORDER BY pageName, lastModif {SQL}

The user and lastModif for version 1 of the page is the same as the creator and created columns for the page in the tiki_pages table. And the user and lastModif columns in the tiki_pages table is the same as the user and lastModif of the last entry for that page in the tiki_history table.

By User
Copy to clipboard
{SQL(db=>local)} SELECT pageName, version, FROM_UNIXTIME(lastModif) as Date, user FROM tiki_history WHERE user = 'user' ORDER BY pageName, lastModif {SQL}


The tiki_history table can get pretty large. Since I am mainly the only person that updates my pages, sometimes I truncate it. But if you do that, you loose the contributor information.