Index: trunk/extensions/SemanticMediaWiki/RELEASE-NOTES |
— | — | @@ -11,6 +11,8 @@ |
12 | 12 | * New configuration parameter $smwgMaxNonExpNumber to set the maximal number that |
13 | 13 | SMW will normally display without using scientific exp notation. Defaults to |
14 | 14 | 1000000000000000. |
| 15 | +* New configuration parameter $smwgMaxPropertyValues to control number of values |
| 16 | + that are shown for each page in the listing on Property pages. Defaults to 3. |
15 | 17 | * The #ask parameter "headers" can now be given the value "plain" to get query |
16 | 18 | results that show the printout label (e.g. property name) but without a link. |
17 | 19 | * Numerous bugfixes |
Index: trunk/extensions/SemanticMediaWiki/includes/articlepages/SMW_PropertyPage.php |
— | — | @@ -107,7 +107,7 @@ |
108 | 108 | * one column and object articles/values in the other one. |
109 | 109 | */ |
110 | 110 | private function subjectObjectList() { |
111 | | - global $wgContLang; |
| 111 | + global $wgContLang, $smwgMaxPropertyValues; |
112 | 112 | $store = smwfGetStore(); |
113 | 113 | |
114 | 114 | $ac = count($this->articles); |
— | — | @@ -137,7 +137,7 @@ |
138 | 138 | ' ' . $searchlink->getHTML($this->getSkin()) . '</td><td class="smwprops">'; |
139 | 139 | // Property values |
140 | 140 | $ropts = new SMWRequestOptions(); |
141 | | - $ropts->limit = 4; |
| 141 | + $ropts->limit = $smwgMaxPropertyValues + 1; |
142 | 142 | $values = $store->getPropertyValues($this->articles[$index], $this->mProperty, $ropts); |
143 | 143 | $i=0; |
144 | 144 | foreach ($values as $value) { |
— | — | @@ -145,7 +145,7 @@ |
146 | 146 | $r .= ', '; |
147 | 147 | } |
148 | 148 | $i++; |
149 | | - if ($i < 4) { |
| 149 | + if ($i < $smwgMaxPropertyValues + 1) { |
150 | 150 | $r .= $value->getLongHTMLText($this->getSkin()) . $value->getInfolinkText(SMW_OUTPUT_HTML, $this->getSkin()); |
151 | 151 | } else { |
152 | 152 | $searchlink = SMWInfolink::newInversePropertySearchLink('…', $this->articles[$index]->getWikiValue(), $this->mTitle->getText()); |
Index: trunk/extensions/SemanticMediaWiki/includes/SMW_Settings.php |
— | — | @@ -148,6 +148,12 @@ |
149 | 149 | ## |
150 | 150 | |
151 | 151 | ### |
| 152 | +# How many values should at most be displayed for a page on the Property page? |
| 153 | +## |
| 154 | +$smwgMaxPropertyValues = 3; // if large values are desired, consider reducing $smwgPropertyPagingLimit for unchanged performance |
| 155 | +## |
| 156 | + |
| 157 | +### |
152 | 158 | # Settings for inline queries ({{#ask:...}}) and for semantic queries in |
153 | 159 | # general. This can especially be used to prevent overly high server-load by |
154 | 160 | # complex queries. The following settings affect all queries, wherever they |