Posted by peterx on August 13, 2009 at 1:21am
4 followers
Jump to:
| Project: | Storm |
| Version: | 6.x-1.23 |
| Component: | Storm.module |
| Category: | feature request |
| Priority: | minor |
| Assigned: | Unassigned |
| Status: | closed (fixed) |
Issue Summary
The Storm lists all appear to contain 10 entries. 20 would fit my screen. An administration option to change all the list lengths would be useful.
Comments
#1
This can already be done using the filter options on each list.
(EDIT: Although this is setting per list rather than globally)
#2
This could be easily acheivable by adding the following lines to the
storm_admin_settingsfunction instorm.module$form['storm_default_items_per_page'] = array('#type' => 'textfield',
'#title' => t('Default Items per Page'),
'#default_value' => variable_get('storm_default_items_per_page', 10),
'#description' => t('Default items per page when viewing lists'),
'#size' => 5,
'#weight' => $w++
);
Then in the modeles theme.inc i.e. for Tickets
stormticket.theme.incchange the code instormticket_list$itemsperpage = $_SESSION['stormticket_list_filter']['itemsperpage'];if (!$itemsperpage) {
$itemsperpage = variable_get('storm_default_items_per_page', 10);
$_SESSION['stormticket_list_filter']['itemsperpage'] = $itemsperpage;
}
So that you're getting the default setting or using 10 if there isn't one.
#3
Looks good.
#4
Committed to all modules.
Note that the items per page settings are in each module's
admin.incfile, nottheme.incand that it is the setting instormmodule_list_filterwhich matters rather thanstormmodule_list.#5
Automatically closed -- issue fixed for 2 weeks with no activity.