Paramétrage Kono/Extension/DynamicPageList
Aller à la navigation
Aller à la recherche
DynamicPageList ajoute l'accès à un formulaire de contact en pied de chaque page du wiki.
Généralité
Source
MediaWiki, extension DynamicPageList :
Paramétrage
Ajouter les paramètres suivants au fichier de configuration du wiki LocalSettings.php, pour ajouter cette fonctionnalité :
wfLoadExtension( 'DynamicPageList' );
Modifier les variables suivantes pour personnaliser l'extension :
# Configuration variables. Warning: These use DLP instead of DPL # for historical reasons (pretend Dynamic list of pages) $wgDLPmaxCategories = 6; // Maximum number of categories to look for $wgDLPMaxResultCount = 200; // Maximum number of results to allow $wgDLPAllowUnlimitedResults = false; // Allow unlimited results $wgDLPAllowUnlimitedCategories = false; // Allow unlimited categories // How long to cache pages using DPL's in seconds. Default to 1 day. Set to // false to use the normal amount of page caching (most efficient), Set to 0 to disable // cache altogether (inefficient, but results will never be outdated) $wgDLPMaxCacheTime = 60*60*24; // How long to cache pages in seconds
Exemple d'utilisation
Exemple type
<DynamicPageList> category = foo count = 20 namespace = file addfirstcategorydate = ymd imagewidth = 70 galleryshowfilesize = yes galleryshowfilename = yes imagesperrow = 7 gallerycaption = Galleries! ordermethod = sortkey order = ascending mode = gallery offset = 12 </DynamicPageList>
Exemple, liste des articles de la catégorie "Logiciel installé"
<DynamicPageList> category = Logiciel installé ordermethod = sortkey order = ascending </DynamicPageList>