Ticket #1835 (closed enhancement: fixed)

Opened 2 years ago

Last modified 2 years ago

folder_contents / content_lib_display_contents is limited to 100 objects

Reported by: jonathan.winterflood@capgemini.com Assigned to: trac
Priority: P2 Milestone: CPS 3.4.5
Component: CPSDefault Version: TRUNK
Severity: normal Keywords:
Cc:

Description

When viewing a folder in a CPSDefault site with folder_contents, only the first 100 documents are visible. The objects are broken up into pages 1-30; 31-60; 61-90 and 91-100 whenever the object count is > 100

The limitation is created by the getBatchList script, whose max_items parameter defaults to 100 The macro content_lib_display_contents/display_contents who calls getBatchList does not provide for passing the max_items parameter.

replacing the following lines:

 zoom zoom|python:0;
 batches_all python:here.getBatchList(items, columns, items_per_page, zoom);

by these:

 zoom zoom|python:0;
 max_items max_items|python:100;
 batches_all python:here.getBatchList(items, columns, items_per_page, zoom, max_items);

allows using the max_items variable

then, setting max_items to None (eg in folder_contents) allows us to display the full contents

Change History

05/22/07 17:51:18 changed by madarche

  • type changed from defect to enhancement.

05/22/07 17:55:58 changed by madarche

  • status changed from new to closed.
  • resolution set to fixed.

Fixed by changeset [51758].