As per subject, it is getting around 10 items for me instead of the 4 I set in the display settings.
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | view_export.txt | 14.58 KB | giorgio79 |
As per subject, it is getting around 10 items for me instead of the 4 I set in the display settings.
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | view_export.txt | 14.58 KB | giorgio79 |
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 :)