Server - Contents

Pmwiki-PartB

new: 09-Sep-2023

Customizing and Enhancing your Pmwiki

At Pmwiki.org there are hundreds of way to customizing it as well as extending its capability with add-ons. Below focuses on the Ubuntu environment but the related folders are the same in Windows. Instead of the 'nano' editor, one can in Windows just use 'notepad' or better Notepad++

Note: With the changes made in each version of PHP, an number of these add-ons may not yet be compatible with PHP8 and may require an earlier version, such as PHP7.2, if one wishes to have a particular add-on.

Further Customizing: PmWiki - Config.php

Reference: Pmwiki.org - LocalCustomizations

Highly recommended to read through the config.php file. Here are recommended changes for a locally-based computer:

$ScriptUrl = 'http://localhost/pmwiki.php';
$PubDirUrl = 'http://localhost/pub';
## to upload files within pmwiki
$EnableUpload = 1;
$UploadPermAdd = 0;
$DefaultPasswords['upload'] = '';
$UploadMaxSize = 1000000; # upload files up to 1Mb.

For easy uploading, this addon is highly recommended: Pmwiki.org - DragDropMultiUpload

An Example Addon for Pmwiki: TextExtract

TextExtract Addon offers an excellent mechanism to selectively search through pages on the site - a great assistance for those who post hundreds of notes therein.

Download this file extract-2023-2-16.php by copy and paste into a file named: extract.php and upload this file into the directory: pmwiki/cookbook/

sammy@imega:$ nano pmwiki/local/config.php

add this line in config.php

include_once("cookbook/extract.php")

Then go to your Pmwiki and editing the sidebar, add this lines: * [[Main/AdvSearch]] then save and click on the same so to add these three lines:

(:extract regex=1:)
(:searchresults:)
[[ https://www.pmwiki.org/wiki/Cookbook/TextExtract#toc-4.3.5 |Search Criteria]]
Pmwiki Pmwiki-PartB
Pmwiki-Deploy Pmwiki-Extras