Cibref3

From Fxp Wiki

Jump to: navigation, search

Contents

Liste des pages se référrant à une autre page
List of pages referring to another page

Utilité

Sert à construire un menu, en listant non pas les références à d'autres pages Fonctionne comme le referring plugin, mais on indique le nom de la page dont on veut la liste.

Useful to build a menu: shows the pages referring to another page. Works like the referring plugin, but you indicate the name of the pages you want the list of.
Peut construire en boucle un arbre des pages se référant à une autre, puis pour chacune de ces pages, construire à nouveau la liste des pages se référant à elles. Grâce à un argument level

Can build a tree by looping through the pages referring to a page and again making the list of pages referring to these pages. Thanks to a level argument.

Exemple


Screenshot

Arguments

  • pname :
    Nom de la page à laquelle on se réfère
    Name of the page to which we refer.
  • level :
    Si on veut créer un arbre de pages qui réferent aux autres pages
    If we want to create a tree of pages which refer to other pages.

Code

  • create a folder named "cib" in JSPWiki/WEB-INF/classes/
  • Ajoutez ceci dans votre fichier JSPWiki/WEB-INF/jspwiki.properties, au paragraphe "Plugin search paths." Décommentez la ligne en enlevant le #. add this in your JSPWiki/WEB-INF/jspwiki.properties file, in the "# Plugin search paths." paragraph.
 
jspwiki.plugin.searchPath = cib
 
  • Cibref3Code Le code colorisé. Colorised code by Scite

wiki code


Css

Ajouter quelque chose de ce genre à la feuille de style dans JSPWiki/templates/default/jspwiki.css
Add something like this in JSPWiki/templates/default/jspwiki.css
 
.skip, *.cibref  span.cibrefpname{
	display: none;
}
.cibref span {
	display:block;
	margin-bottom: 3px;}
.cibrefLevel1,*.cibrefLevel2, {font-weight: normal;}
.cibrefLevel0 {font-weight: bold;}
 
Personal tools