NP_MonthlyArchivLinks.php

This plugin can be used to display the last few monthly archiv links. Also it will display and count the items per month. The whole output is fully editable in the Plugin option managment.

General Plugin info
Author: ALF mit I
Current Version: 0.1
Download: -
Code: Code
Demo: -
Forum Thread: here

How to use the plugin

This plugin can be used to display the last few monthly archiv links. Also it will display and count the items per month. If you have not so much posts per month, this could be more usefull for your users to reach the archiv entries quickly as a calendar. So you can make links like that in the navigation available:

  • August 2004 (2)
  • July 2004 (8)
  • Juni 2004 (14)

This plugin is designed to give a more flexible possibility to customize the HTML - Output. The whole output is fully editable in the Plugin option managment, to fit with a special layout vision. Working well, only the textareas in the plugin management ar a little bit to small. In the pluginsource is no HTML code !!

Install

  1. Copy the Code from the Nucleus Wiki or from my Site
  2. Install the plugin
  3. change option if needed

Options

  • display year names in short or long form
  • Comma seperated monthnames in your language
  • HTML formatting Start Template: could be a '<ul>' Tag
  • HTML formatting Link Template: Format the archiv links in your preferred style and used the defined placeholders <%archivlink%>, <%monthname%>. Optional placeholders are <%year%>, <%activ%> and <%itemcount%>
  • HTML - Active Style: (e.f. class=*? or style=*?)
  • Comment - e.g. “No Archiv links found”

Skin Parameters

  • the first parameter define how many archiv links will be show:

<%MonthlyArchivLinks(5)%>: show 5 latest archiv links all blogs;

  • the second parameter defines from which blog the archivlinks will come:

if no 2nd parameter is defined, the plugin will show the archiv links among all blogs

Examples

  • <%MonthlyArchivLinks(5,actual)%>: show 5 archiv links from the actual blog
  • <%MonthlyArchivLinks(5,3)%>: show 5 archiv links from the blog number 3
  • <%MonthlyArchivLinks(5,default)%>: show 5 archiv links from the default blog
  • <%MonthlyArchivLinks(5,cat)%>: show 5 archiv links from the current category

Changelog

  • 0.1 initial relase – 1.7.2004
  • 0.12 minor code cleanup - added to nucleus wiki

If you have any questions, remarks or improvements please post them at the nucleus forum http://forum.nucleuscms.org/viewtopic.php?t=4071

Alfred “Alf mit i” Scheibl

:: Back to Plugins Overview ::

monthlyarchivlinks.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