A plugin to show and hide extended entries without leaving the index page.
| General Plugin info | |
|---|---|
| Current Version: | 1.23 |
| Download: | |
| Code: | View here |
| Demo: | |
| Forum Thread: | Read here |
1. Unzip the file and upload it to your main Nucleus plugins directory.
2. Install the plugin in the Plugins section of your Nucleus Admin area.
THE PLUGIN CODE FOR VERSION 1.23 HAS BEEN PASTED INTO THE WIKI AND INTO THE SUPPORT DISCUSSION THREAD. NOT AVAILABLE FOR DOWNLOAD – THE PLUGIN AUTHOR’S SITE IS UNAVAILABLE.
1. For this plugin to work, put the following in the “head” portion of both the Item & Main/Index skins:
<%CollapsedContents%>
The above is required for the plugin to work, no matter how you want to customize plugin.
2. To have the entries collapse and expand on both the default [index/main] and detailed [item] pages, in the item entry itself, use the following format to model your entry:
v——- SOME OF THE INFO BELOW IS OUTDATED. View the SupportForum thread for this plugin to read the (scattered across numerous posts) details for using the plugin.
Article <%collapse(click to show)%> contents... <%/collapse(click to hide)%>
where the “click to show” and “click to hide” text can be changed to the text you like to be shown. For the above, there is no need to change any templates in your nucleus admin area.
3. To have the entries collapse and expand only on the default [main index] page and have the articles/posts show everything [no hidden text] on the detailed [item] pages, put in the templates sections [the default index template] the following, in the “link to extended entry” template area:
<%CollapsedContents(in, read extended entry)%> <%more%> <%CollapsedContents(out, hide entire entry)%>
where the “read extended entry” and “hide extended entry” can be changed to the text you like to be shown.
4. You can also use it in other sections of templates or in skins. To do this, put contents between <%CollapsedContents(in,initial string, serial number)%> and <%CollapsedContents(out,after string, serial number)%>.. Default value of serial number is 1 and can be omitted.
<%CollapsedContents(in, click to show, 2)%> temp vars, skin vars, ... <%CollapsedContents(out,click to hide, 2)%>
To change the formatting for this plugin, the CSS class used for the string switch is np_cc_switch(item or template) or np_cc_switch_skin(skin), and CSS class for the folding contents is np_cc_contents(item or skin), or np_cc_skin(skin), all located inside the plugin code itself.
For example :
.np_cc_switch a{
padding-left: 15px;
background-image: url(images/arrow.gif);
background-position: 0% 50%;
background-repeat: no-repeat;
}
None reported so far.
* [Version 1.0, released 2005-03-17] * [Version 1.1, released 2005-12-10]
NP_CollapsedContents version 1.0 works with Nucleus CMS version 3.31 - 2007-10-27 ftruscot