When using view to reference nodes only 10 titles get listed

gabidrg - November 6, 2008 - 21:43
Project:Composite Layout
Version:6.x-1.0-beta3
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:active
Description

Just discovered your module, great work, indeed a bless for clients struggling to understand Panels. There are some issues I've seen, not sure if they are bugs or I miss something:

1. When using a view to define content types and nodes that can be referenced I only get 10 items listed no matter of number of items per page I setup in Views 2. Found nothing to cause this, so I eventually added a line into composite.node.inc at line 112, just before view gets built:

$view->set_items_per_page(0);

This fixed the issue temporarily, but it is hacky. Any ideas?

2. I was expecting to be able to list instead on node titles, also some additional info (node type, taxonomy etc.) using Views fields (my view referencing nodes is a list view). This does not seem to work at all. What am I missing?

#1

bengtan - November 7, 2008 - 01:06

Hi,

1.
Try this:

Undo your call to set_items_per_page().

Line 112 reads:

$result = $view->execute();

Change this to

$result = $view->execute_display();

Turns out the call to execute() doesn't initialise the view properly.

2.
You haven't missed anything. At the moment, composite layout only picks out the node and node title. The code is not intelligent enough to retrieve additional information from the view.

On a longer term, the 'Nodes' tab of Composite Layout needs work. Some sort of paging is needed. If a site has 100 potential nodes to pick from, all 100 get displayed :(

It'd also be nice to retrieve additional information from a view (as you are trying to do), but I haven't had the time to revisit this module recently.

 
 

Drupal is a registered trademark of Dries Buytaert.