This is a simple plugin which displays all of the categories of a given blog, in the format that you specify.
| General Plugin info | |
|---|---|
| Current Version: | 1.01 |
| Code: | NP_ListCategoriesByBlogId code |
| Download: | np_listcategoriesbyblogid_v1.01.zip |
| Demo: | http://tim.bellette.net |
| More: | http://tim.bellette.net/index.php?itemid=61 |
| Forum Thread: | http://forum.nucleuscms.org/viewtopic.php?p=44368 |
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.
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
NP_ListCategoriesByBlogId version 1.01 works with Nucleus CMS version 3.31 - 2007-11-14 kg