Last modified: 2009-08-01 18:54:15 UTC

Wikimedia Bugzilla is closed!

Wikimedia has migrated from Bugzilla to Phabricator. Bug reports should be created and updated in Wikimedia Phabricator instead. Please create an account in Phabricator and add your Bugzilla email address to it.
Wikimedia Bugzilla is read-only. If you try to edit or create any bug report in Bugzilla you will be shown an intentional error message.
In order to access the Phabricator task corresponding to a Bugzilla report, just remove "static-" from its URL.
You could still run searches in Bugzilla or access your list of votes but bug reports will obviously not be up-to-date in Bugzilla.
Bug 14506 - enhancement: adjust number of Property values displayed
enhancement: adjust number of Property values displayed
Product: MediaWiki extensions
Classification: Unclassified
Semantic MediaWiki (Other open bugs)
All All
: Normal enhancement (vote)
: ---
Assigned To: Markus Krötzsch
Depends on:
  Show dependency treegraph
Reported: 2008-06-11 03:00 UTC by S Page
Modified: 2009-08-01 18:54 UTC (History)
0 users

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Description S Page 2008-06-11 03:00:42 UTC
In the mail thread "[Semediawiki-user]  Getting the values of a property",
ablum wants to list all the *values* of a property.  Property:Foo's page lists pages and their values, but only shows at most three values for each page before "...".

It would be nice if admins and/or users could adjust this. In SMW_PropertyPage.php's shortList() function, just change

   $ropts->limit = 4;
   if ($i < 4) {

   protected max_list = 3;  // How many items to show for each thing listed

   // Ask for one extra, to determine whether to show ellipsis for "more items".
   $ropts->limit = $this->max_list + 1;
   if ($i <= $this->max_list) {

and maybe have a global for this and/or check for a query string parameter in the URL that overrides it.
Comment 1 Markus Krötzsch 2009-08-01 18:54:15 UTC
Done: the global configuration parameter is called $smwgMaxPropertyValues and defaults to 3.

Note You need to log in before you can comment on or make changes to this bug.