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
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

beholder - November 14, 2007 - 11:55

I have found that too. It's because module uses taxonomy_select_nodes() function which get number of nodes from variable feed_default_items. I think that better way is to use own function — without such limitation (with maximum 30 files to display).

#2

jarula - April 17, 2008 - 12:50

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

 
 

Drupal is a registered trademark of Dries Buytaert.