Closed (fixed)
Project:
Views (for Drupal 7)
Version:
6.x-3.x-dev
Component:
Views Data
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
14 Feb 2010 at 06:02 UTC
Updated:
1 Apr 2010 at 14:20 UTC
Jump to comment: Most recent file
Comments
Comment #1
dawehnerPaste your code.
Paste your view.
Comment #2
giorgio79 commentedThanks Daniel, here is the code, it is very simple:
For now I use set_items_per_page so I get only as much as I want :)
I am adding the view in a txt so we wont have to scroll too much :)
Comment #3
dawehner.
Comment #4
dawehnerI don't know why do you use the render function? This is supposed to be runned after pre_execute, which you miss to execute.
I suggest to use $view->preview($display_id) instead. With this i think this will be fixed.
Comment #5
giorgio79 commentedWith the print $view->render('block_1'); I just want to print out the view that's it :)
Not sure about all the execute and preexecute stuff, but will try the preview as you mention.
Comment #6
kenorb commented#4 thanks, preview worked
Comment #7
dawehnerSure it does :)