Topic on Project:Support desk

Show recent page changes on a page

12
This post was hidden by 196.190.186.110 (history)
Gustave London (talkcontribs)

You add this page in the your watchlist.

Seehausen (talkcontribs)

No, i want in general to show a recent changes feed just of the current page in the upper part on the current page and not user-dependent.


Let´s say i want to include {{ Special:RecentChanges }} , but just showing the recent changes section of the page where i included it and not showing recent changes of the whole wiki.

Is that possible somehow?

Ciencia Al Poder (talkcontribs)

You want to show the page history, not recent changes.

There's no magic word to do that. I don't know if there's an extension to do that. With JavaScript, you can query the API:Revisions to get the info you want and insert it anywhere on the page. Of course, that needs coding skills.

Jonathan3 (talkcontribs)
Seehausen (talkcontribs)

Ok that´s good to know. I tried to test a query with the API-sandbox and the JSON output would be:


{

   "action": "query",

   "format": "json",

   "prop": "revisions",

   "titles": "Main Page",

   "rvprop": "timestamp|user|comment",

   "rvlimit": "5"

}


Where do i need to "code" that query/snippet and what would i need to write in the page content text box to refer to the code then and show the page history finally?

Please go slightly in detail.


Best regards and thank you!

Seehausen (talkcontribs)

@Jonathan3I installed the Extension:DynamicPageList (third-party) because according to the manual for my use case it offers some solutions.

But as i installed the extension i didn´t have editing permission on the pages anymore.. So i couldn´t put the any tags /content on the pages.

Does the extension automatically restrict access on the pages and i need to change user rights first?

AhmadF.Cheema (talkcontribs)

Regarding the extension, it probably isn't supposed to, so it might be a bug. First, make sure you have that extension version installed which corresponds to your MediaWiki version; second, make sure Extension:DynamicPageList (third-party) is the problematic extension, it's possible that some other extension is bugging out (a previous version of Extension:Lockdown is known to cause this).

Jonathan3 (talkcontribs)

I have never had that problem so unfortunately can't help you.

I just use the latest extension versions from git whenever I upgrade MediaWiki – but I never keep up to date with MediaWiki – so maybe you're having a problem because you have the current MediaWiki version.

Seehausen (talkcontribs)

@Jonathan3


I now used the latest extension version of DynamicPageList3 , updated the Wiki and inserted the following code according to the manual:


{{#dpl: title= MainPage

|addeditdate=true |ordermethod=lastedit |order=ascending

|count=10 }}


but it returns the following error:

"Error: no suitable entry found.", although the MainPage was edited recently.

(If i include the line "namespace= |MainPage" instead of "title= MainPage" it shows recently edited subpages, but we just want to display a smaller "history" of the current page (excluding changes of subpages))


Does anyone have an idea what the problem could be?


Best regards and thanks in advance.

134.130.74.86 (talkcontribs)

Hi everyone,

I have a similar problem, can anyone help please?



Jonathan3 (talkcontribs)

I've only looked at one thing, so it could be something else, but Main Page has a space in it.

Reply to "Show recent page changes on a page"