S2:ItemRange

From No LJ Ads Wiki

Jump to: navigation, search

Represents a range of items which optionally contain items.

[edit] Members

bool all_subitems_displayed True if the subitems in this range represent the entire set. In this case, all of the URL members are blank.
int current The currently-active item.
int from_subitem The index of the first subitem in this range.
int num_subitems_displayed The number of subitems in this range.
int to_subitem The index of the last subitem in this range.
int total The total number of items that are navigable to.
int total_subitems The number of subitems.
string url_first URL for the 'first' link. Blank if already on the first page. (Read-only)
string url_last URL for the 'last' link. Blank if already on the last page. (Read-only)
string url_next URL for the 'next' link. Blank if there isn't a next URL. (Read-only)
string url_prev URL for the 'prev' link. Blank if there isn't a previous URL. (Read-only)

[edit] Methods

print() : void Prints the item range links
print(string labeltext) : void Prints the item range links with the given labeltext
url_of(int n) : string Returns the URL to use to link to the nth item