enhancement: adjust number of Property values displayed
Closed, ResolvedPublic

Description

Author: info

Description:
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) {

to

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.


Version: unspecified
Severity: enhancement
URL: http://semanticweb.org/wiki/Property:Has_author#SMWResults

bzimport set Reference to bz14506.
bzimport created this task.Via LegacyJun 11 2008, 3:00 AM
mkroetzsch added a comment.Via ConduitAug 1 2009, 6:54 PM

Done: the global configuration parameter is called $smwgMaxPropertyValues and defaults to 3.

Add Comment

Column Prototype
This is a very early prototype of a persistent column. It is not expected to work yet, and leaving it open will activate other new features which will break things. Press "\" (backslash) on your keyboard to close it now.