default number of results to display

From semantic-mediawiki.org

I have $smwgQMaxInlineLimit = 3000 and $smwgQMaxLimit = 3000 and

{{#ask: ...
 |format=datatable
 |limit=1000
}} 

The default number of pages displayed is always 10. How can I increase this number?

I think the "limit" parameter may actually be doing its job in terms of data, because if I lower it and then search for a person who would show up later, they don't show, but if I increase the limit the search finds them. So it's not that the limit parameter doesn't work, it simply no longer does what I would intuitively expect it to do. Is there a different parameter or CSS trick to increase the default, or is it simply not configurable?

23:53, 23 February 2019

> The default number of pages displayed is always 10. How can I increase this number?

I suspect you mean the dropdown which says 10, selecting a different number should modify the list length. If you mean to have a different default (other than 10) then you would need to look at [0] and modify the source [1] accordingly.

[0] https://datatables.net/examples/advanced_init/length_menu.html

[1] https://github.com/SemanticMediaWiki/SemanticResultFormats/blob/master/formats/datatables/resources/ext.srf.formats.datatables.js

00:08, 24 February 2019

Thanks MWJames, and sorry about the long delay. Do I read your suggestion right that I should update the ResultFormats source code according to the documentation from the datatables people? This would mean having to do this change every time I update SRF (or learn how to make the update good enough it becomes part of SRF :-) ). Just to be sure I am not missing something... Thanks!

06:42, 24 April 2019

Did you figure it out? You're probably not going to reply. It saddens me that a feature that has been requested this many times has not been implemented.

09:54, 19 February 2022

FWIW: in the current version of Datatables (SMW 4.1 onwards), you can use:

|datatables-pageLength=50
15:39, 28 August 2023