https://bugzilla.wikimedia.org/show_bug.cgi?id=29586
Web browser: ---
Bug #: 29586
Summary: If you browse subcats, don't show articles
Product: MediaWiki
Version: 1.17.0
Platform: All
OS/Version: All
Status: NEW
Severity: normal
Priority: Unprioritized
Component: Categories
AssignedTo: [email protected]
ReportedBy: [email protected]
Classification: Unclassified
This saves some queries and is more user friendly:
If user navigates via "(previous 200) (next 200)", don't show the other
sections. I'm not talking about "from"...
Background: If the user browses through e.g. the list of subcats, he doesn't
care much about the images atm. If he wants to see everything again he can
click "catgeory" in the upper left.
Example without image gallery section:
public function getHTML() {
global $wgOut, $wgContLang, $wgRequest;
wfProfileIn( __METHOD__ );
$this->clearCategoryState();
$this->doCategoryQuery();
$this->finaliseCategoryState();
$subcatfrom = $wgRequest->getVal( 'subcatfrom' );
$subcatuntil = $wgRequest->getVal( 'subcatuntil' );
$pagefrom = $wgRequest->getVal( 'pagefrom' );
$pageuntil = $wgRequest->getVal( 'pageuntil' );
$r = '';
if (!isset($pagefrom) &&!isset($pageuntil)) {
$r .= $this->getSubcategorySection();
}
if (!isset($subcatfrom) && !isset($subcatuntil)) {
$r .= $this->getPagesSection();
}
...
--
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l