NP_ListCategoriesByBlogId

This is a simple plugin which displays all of the categories of a given blog, in the format that you specify.

Installing

  • Copy and paste the code above into a file called NP_ListCategoriesByBlogId.php. Or download and extract the zip file from the download link above.
  • Upload the file into the nucleus plugin directory, than install or update the subscription list.
  • Include skin var where you wish for the plugin to be shown.

How to use the plugin

Anywhere in your Skin place the code

<%ListCategoriesByBlogId(n)%>

where n = the id of the blog to get the categories from. If you do not specify the id of the blog, then the blogid of the current page with be used.

Order Output

By default the categories are display in alphabetical order, however you can change this by adding a second paramater to the call.

<%ListCategoriesByBlogId(n,1)%>

Displays categories from blog n in alphabetical order (same as not passing a second paramater

<%ListCategoriesByBlogId(n,2)%>

Displays categories from blog n in reverse alphabetical order

<%ListCategoriesByBlogId(n,3)%>

Displays categories from blog n in order of category id

<%ListCategoriesByBlogId(n,4)%>

Displays categories from blog n in order of reverse category id

History

  • Version 1.01, released 2005-09-21
    • Added second param to set order of output
  • Version 1.00, released 2005-09-20
    • First released.

Plugin review

NP_ListCategoriesByBlogId version 1.01 works with Nucleus CMS version 3.31 - 2007-11-14 kg

listcategoriesbyblogid.txt · Last modified: 2007/11/14 14:48 (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