NP_TitleList

Displays an item index page with a title list. With drop down menus it is possible to change the listed categories, months, the sort order and the number of titles per page.

General Plugin info
Author: Taka
Current Version: 0.35
Download:
Code: NP_TitleList_code (with changes discribed in the forum)
Demo: -
Forum Thread: thread in the nucleus forum

Installing

  1. Unzip the file and upload the contents to your plugin directory
  2. Install the plugin in the Plugin Manager
  3. Put <%TitleList%> in your archive list skin

How to use the plugin

The tag <%TitleList%> must be placed in the skin. Here is the code example for the Archive List in the Default Skin:

<!-- page content -->
<div id="container">
<div class="content">
<div class="contenttitle">
<h2>Archives</h2>
</div>
<dl>
<dt>Monthly Archives</dt>
<%TitleList%>
<!--<%archivelist(default/index)%>-->
</dl>
</div>
</div>

Available SkinVars and/or TemplateVars

  • <%TitleList%>

There are some parameters available in this skinvar that can give you greater control over the look of the output than what is available in the plugin options. These are described in the forum by subirghosh (Thanks)

You can specify the number of items to be displayed when you call the plugin.

The new one is something like this: <%TitleList(month,news/short,20,2,1,all,DESC,0)%>

(1). month ----- month/day (can be omitted)

(2). news/short ----- Template name (can be omitted)

(3). 20 -----Number of displays
 [New] You can change the value of the display number list.
 e.g. 20@10/20/30
<%TitleList(month,news/short,20@10/20/30,2)%>

(4). 2 ----- page navigation style.(0 = none, 1 = only Prev/Next, 2 = like phpBB)

(5). 1 ----- displays select form.(0 = no, 1= yes)

(6). all ----- [New] blog mode.
blank = displays current blog's items.
blogid = displays items of specified blogid. You can write two or more blogid like "1/3/4".Or, you can write blogid that should not be displayed like "<>2", "<>2/5".
"all" = displays items of all blogs.

(7). DESC ----- sort order. DESC or ASC

(8). 0 ----- limit number of months. (0 = all)

e.g. <%TitleList(grey/short,50,2)%>, <%TitleList(10@10/25/50,2,0,all)%>,
<%TitleList(month,grey/short,10,2,1,,DESC,12)%>

Options

  • 'Label for the Category drop-down list', default: 'Category:'
  • 'Option name of All category', default: 'All'
  • 'Label for the Archive month/day drop-down list', default: 'Archive:'
  • 'Option name of All Archive', default: 'All'
  • 'Label for the Sort order drop-down list', default: 'Sort by:'
  • 'Option name of Sort order - order by date DESC', default: 'Newest Posting'
  • 'Option name of Sort order - order by date ASC', default: 'Oldest Posting'
  • 'Label for the Results per page drop-down list', default: 'Per page:'
  • 'Send button text', default: 'Submit'
  • 'Template of list header', default: ”<ul class=\”titlelist\”>\n”
  • 'Template of month/day header', default: ”<li><%date(%B %Y,en)%>\n<ul>\n”
  • 'Template of item', default: ”<li><a href=\”<%itemlink%>\”><%title%></a>(<%date(%x)%>)</li>\n”
  • 'Template of month/day footer', default: ”</ul>\n</li>\n”
  • 'Template of list footer', default: ”</ul>”

Tips and Tricks

Wishlist

Bugs

History

  • [Version 0.35, released Sep 18, 2006 ]
    • security fix
titlelist.txt · Last modified: 2006/10/20 17:23 (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