Closed (fixed)
Project:
Views (for Drupal 7)
Version:
5.x-1.5
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
6 May 2007 at 12:53 UTC
Updated:
4 Oct 2008 at 23:31 UTC
This is probably a really simple question but how can I make the following view give me an offset of 1?
It is possible isn't it?
<?php
$view = views_get_view('Featured_Venue_1');
print views_build_view('block', $view, array(), false, 1);
?>
Comments
Comment #1
merlinofchaos commentedYou're almost there.
You just need to send in the $offset argument.
Comment #2
macm commentedIs is possible pass arguments to sort? (by date, by update, by name)
Regards
Mario
Comment #3
macm commentedIs is possible pass arguments to sort? (by date, by update, by name) ASC DESC
Regards
Mario
Comment #4
(not verified) commentedComment #5
jdevries commentedSorry to reopen it, but I'm running into this offset issue. I'm trying to get this piece of code to run properly:
They way I understand it it should skip my results by one and display only the the next nine. Unfortunately, the offset does not seem to stick. It will display nine results, but always starting with the first, instead of the second. What might I be doing wrong?
Comment #6
madwalo commentedho can i g et t he values of views?
i don't mean build the view, i just want to get all the variables that view gives to me like view name, view tittle, view id etc....
Comment #7
muka commentedTry this
lu
Comment #8
sunI think the question has been answered.
Comment #9
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.