- b2evolution CMS User Manual
- Developer Reference
- Website Skins/Themes
- Skin Tags / API
- Other Tags
- Template Tag: Mainlist Page Links
Template Tag: Mainlist Page Links
Displays links to list pages.
$MainList->page_links( array(
'block_start' => ' ',
'block_end' => ' ',
'block_single' => '',
'links_format' => '$prev$',
'prev_text' => '#',
) );
$MainList->page_links( array(
'block_start' => ' ',
'block_end' => ' ',
'block_single' => '',
'links_format' => '$next$',
'prev_text' => '#',
) );
or
// -------------------- PREV/NEXT PAGE LINKS (POST LIST MODE) --------------------
mainlist_page_links( array(
'block_start' => '<div class="navigation">',
'block_end' => '</div>',
'prev_text' => '<<',
'next_text' => '>>',
) );
// ------------------------- END OF PREV/NEXT PAGE LINKS -------------------------
Parameters
- Name: block_start
- Default: ‘<p class="center">’
- Usage: Displayed before links.
- Name: block_end
- Default: ‘</p>’
- Usage: Displayed after links.
- Name: block_single
- Default: (no space)
- Usage:
- Name: links_format
- Default: ‘#’
- Usage: If ‘links_format’ is ‘#’ then it will be displayed in default format $prev$ $first$ $list_prev$ $list$ $list_next$ $last$ $next$. You can use own format to display links.
- Name: page_url
- Default: (no space)
- Usage: All generated links will refer to the current page.
- Name: prev_text
- Default: ‘&lt;&lt;’
- Usage: Previous label.
- Name: next_text
- Default: ‘&gt;&gt;’
- Usage: Next label.
- Name: no_prev_text
- Default: (no space)
- Usage: Text to show if there are no previous links.
- Name: no_next_text
- Default: (no space)
- Usage: Text to show if there are no next links.
- Name: list_prev_text
- Default: ‘…’
- Usage: List previous label.
- Name: list_next_text
- Default: ‘…’
- Usage: List next label.
- Name: list_span
- Default: 11
- Usage: Number of links to show.
- Name: scroll_list_range
- Default: 5
- Usage: Step to list links.
Return value
This tag displays content only, it does not have a return value.