NP_BlogWithOffset, NP_PageLinkList and NP_OffsetEntriesLinks are deprecated. Please try NP_ShowBlogs

NP_PageLinkList.php

This plugin provides a list of link to pages that visitor can jump to directly.

General Plugin info
Current Version: v1.7
Download: n/a
Code: click here
Demo: n/a
Forum Thread: forum here

Installing

  1. Copy the above code and save to NP_PageLinkList.php
  2. Upload to plugin directoy
  3. Install from plugin admin menu
  4. Add skinvar <%Plugin(PageLinkList,10)%> (10 is the # of page to display) to the Main Index part of the skin after <%Plugin(BlogWithOffset…..)%>

Available SkinVars and/or TemplateVars

You can customize how the page links list will be displayed by changing some plugin arguments. If you don�t define an argument, the related default value will be used. There are 5 arguments, and they are all explained in the example below.

Example: <%Plugin(PageLinkList,15, | ,1,5,5)%> 1st argument (15) - Defines how many items will be shown per page. Default is “10”. 2nd argument ( | ) - Defines the delimiter between links Default is “|”. 3rd argument (1) - Turn on/off the page link list range. If set to 0, range restriction will be turned off and links to ALL available pages will be displayed (it may be a long list if you have many items). Default is “1” (turned on range restriction). 4th argument (5) - If the link list range is turned on, defines the maximum amount of page links that will be displayed to the LEFT of the current page number. Default is “10” (google-style). 5th argument (5) - If the link list range is turned on, defines the maximum amount of page links that will be displayed to the RIGHT of the current page number. Default is “9” (google-style).

History

  • v1.7 - add plugin dep check
  • v1.6 - fix $blogurl bug
  • v1.5 - support for SqlTablePrefix
  • v1.4 - add page range indicator
  • v1.3 - page link list range
  • v1.2 - fix for multi-blog
  • v1.1 - fix for FancyURL
  • v1.0 - initial version
pagelinklist.txt · Last modified: 2006/07/05 13:03 (external edit)
 
Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Noncommercial-Share Alike 3.0 Unported
Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki