Gives you the possibility to stick one or more items on the index page.
|General plugin info|
|Support:||Plugin comments or forum thread|
|Compability:||Nucleus CMS 3.60, NP_LMReplacementVars 1.0.0|
The NP_LMSticky plugin gives you the possibility to stick one or more items on the index page. It can be used to show the items with the ordinary item template or with a special template.
The current skin variables in the Nucleus core for showing blog content on index pages does not have the possibility to have plugins filter the items shown. Because of this the NP_LMSticky plugin uses a helper plugin for handling item filtering. This plugin is called NP_LMReplacementVars and gives alternative implementations of some key Nucleus core skin variables. It must be installed before the NP_LMSticky plugin can be installed. The NP_LMReplacementVars plugin can be downloaded from the NP_LMReplacementVars plugin page.
The NP_LMSticky plugin has the following options on the blog level:
After the plugin is installed and configured you need to use the NP_LMReplacementVars skin variable for showing the index page (see the NP_LMReplacementVars section bellow) to show the sticky items.
The replacement skin variable for
<%blog()%> in the NP_LMReplacementVars plugin must be used by your blog if
you want this plugin to function.
See the documentation for the NP_LMReplacementVars plugin for further information on how to use the blog replacement skin variable.
To show the sticky items you need to add an extra NP_LMReplacementVars blog skin variable to your main index skin.
This skin varaible must have the dynamic parameter lmsticky set to
The NP_LMSticky plugin recognize the following dynamic parameter used by the NP_LMReplacementVars replacement for the blog skin variable:
enablewill the skinvar only show items configured to be sticked by the NP_LMSticky for the current blog.
If you use the NP_LMBlogPaginate plugin to paginate the main index,
you must use the dynamic parameter lmblogpaginate set to
disable to turn of the pagination for the skinvar that shows the sticked items.
If you use the NP_LMLabel plugin to filter items,
you must use the dynamic parameter lmlabelfilter set to
disable to turn of the filtration for the skinvar that shows the sticked items.
Example use of the blog skinvar replacement:
<%LMReplacementVars(Blog, lm/sticky, lmsticky=enable, lmblogpaginate=disable)%> <%LMReplacementVars(Blog, lm/index)%>
The above will first show the sticked items using the template
and then show the normal main index using the template
This version of the NP_LMBlogPaginate plugin is tested against version 3.64 of Nucleus CMS. The minimum version of Nucleus CMS needed for using this plugin is 3.60.
The minimum version of the NP_LMReplacementVars plugin needed by this plugin is version 1.0.0. If the NP_LMFancierURL plugin is installed is the minimum version of the NP_LMFancierURL plugin needed by this plugin version 3.0.0.
The latest version of the NP_LMReplacementVars plugin can be downloaded from the NP_LMReplacementVars plugin page.
Spam and off topic comments will be deleted.