Folders only display 10 items ...
rHOnDO - June 25, 2007 - 19:43
| Project: | Docs |
| Version: | 5.x-1.0-alpha3 |
| Component: | Code |
| Category: | support request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Jump to:
Description
If I upload more than 10 items to a folder, the oldest items disappear. The folder only seems to show 10 items. (This is for uploading monthly meeting minutes ... so there are twelve documents.) I don't see where this is configurable, and I assume it should show everything in the directory.

#1
I have found that too. It's because module uses
taxonomy_select_nodes()function which get number of nodes from variablefeed_default_items. I think that better way is to use own function — without such limitation (with maximum 30 files to display).#2
add just before return $output in docs_browser
$output .= theme('pager', NULL, variable_get('default_nodes_main', 10), 0);
then change in beginning of function docs_browser_form_files
$nodes_r = taxonomy_select_nodes( array($tid), 'or', 1, false, 'n.created DESC' );
to
$nodes_r = taxonomy_select_nodes( array($tid), 'or', 1, true, 'n.created DESC' );
which gives you normal pager behaviour with docs