Items Per Page

If you decide to use a pager for your view, you can set the number of items that will appear on each "page" by clicking on the small gear icon to the right of the "Use pager" option. Clicking on the gear reveals a form where you can set the number of items that will be displayed per page, the offset (think of the offset as the starting item for your view; for example, if you want to skip the first 10 items and start at number 11, you would enter 10 in the offset field), the pager ID (in nearly every case you can just leave this value as the default), the number of pages you want to display (in most cases you'll want to leave it as blank to show all pages), and you have the option of exposing the options for the visitor to set the number of items per page and the offset. See Figure 11-5.

Defaults: Pager options Items per page

The number of items to display per page. Enter 0 for no limit. Offset

The number of items to skip. For example» if this field is 3, the first 3 items will be skipped and not displayed. Pager ID

Unless you're experiencing problems with pagers related to this view, you should leave this at 0. If using multiple pagers on one page you may need to set this number to a higher value so as not to conflict within the ?page= array. Large values will add a lot of commas to your URLs, so avoid if passible.

Number of pages

The total number of pages. Leave empty to show all pages, EXPOSED OPTIONS

Exposing this options allows users to define their values in a exposed form when view is displayed

□ Expose items per page

When checked, users can determine how many items per page show in a view

□ Expose Offset

When checked, users can determine how many items should be skipped at the beginning.

Update Cancel

Figure 11-5. Setting the pager options

0 0

Post a comment

  • Receive news updates via email from this site