问题
I've got a view defined with 3 nodes, in views-view-unformatted--my-view--default.tpl.php I loop throws $rows but get only first result, if I try this:
$view = views_get_current_view();
error_log(count($view->result)); //<- This returns only 1 row
error_log($view->total_rows); //<- This shows nothing, as if property didn't exist
foreach ($rows as $id => $row):
print $row; //<- Only print first node
endforeach;
What is the problem? Why can't I find the 3 of them?
EDIT I found out that it's only showing one row for not authenticated users, actually for not administrators, I reviewed view access restrictions and are set to none. As far as I know I don't have any content access restrictions and I reviewed permissions and everything seems ok.
Where else can I look?
Thank you
来源:https://stackoverflow.com/questions/11185194/drupal-view-shows-only-one-row