Page MenuHomePhabricator

It should be possible to hide the navigation links in Special:IndexPage
Closed, ResolvedPublic

Description

When transcluding Special:IndexPages, there should be an option to hide the navigation links.

index.jpg (260×1 px, 44 KB)

A simple way to do it is to add a new option to Special:IndexPages (implemented in SpecialIndexPages.php) and use it to set QueryPage->shownavigation to false.

Event Timeline

@Tpt The implementation is in SpecialProofreadPages.php :)

Hello @Tpt, I'd appreciate some guidance to reproduce the screenshot above. I managed to install the ProofRead Page extension as per this guide (https://www.mediawiki.org/wiki/Extension:Proofread_Page) but I can't quite figure out how to obtain the same step as in the description.

Hi @samuelguebo!

The special page we are talking about is Special:IndexPages. To display something you need to have already created some pages in the "Index:" namespace.
The code of this special page is in includes/Special/SpecialProofreadPages.php.php.

Thanks @Tpt, for taking the time to explain this. I created a couple of pages in the Index namespace. However, Special:IndexPages still doesn't return any result, while a general search indicates that there are actually pages in the Index namespace. Should the pages contain special tags or do I need additional settings?

Screenshots below for convenience

Screen Shot 2020-08-01 at 9.08.34 PM.png (439×447 px, 31 KB)

Screen Shot 2020-08-01 at 9.08.20 PM.png (483×785 px, 47 KB)

It's strange. There should not be any cache on this page.

Is Special:IndexPages returning anything when using an empty search (instead of "Test")? If yes, it's probably a problem related to MediaWiki search. If not, are you sure ProofreadPage is properly configured? (a hint: the Index: pages editing interface should display a form instead of the usual edit box).

@samuelguebo You probably need to create MediaWiki: Proofreadpage index template and MediaWiki: Proofreadpage index data config according to the instructions down the extension page (or copy over the ones at https://en.wikisource.org) and then create a new Index page. That new Index page should show up on Special: IndexPages.

@samuelguebo You probably need to create MediaWiki: Proofreadpage index template and MediaWiki: Proofreadpage index data config according to the instructions down the extension page (or copy over the ones at https://en.wikisource.org) and then create a new Index page. That new Index page should show up on Special: IndexPages.

@samuelguebo https://wikisource.org/wiki/Wikisource:ProofreadPage#Configuring_index_pages

Change 654604 had a related patch set uploaded (by Yash9265; owner: Yash9265):
[mediawiki/extensions/ProofreadPage@master] if the shownav field is set, disable the navigation links.

https://gerrit.wikimedia.org/r/654604

Change 654604 merged by jenkins-bot:
[mediawiki/extensions/ProofreadPage@master] Prevent nav links from appearing when Special:IndexPages is included

https://gerrit.wikimedia.org/r/654604

@Yash9265 wrote a change that removes navigation links when transcluding Special:IndexPages. I believe this problem is now solved.