Adds an addressbook functionality to DokuWiki. The search results are also displayed on the standards search page.
The contacts are stored in a sqlite3-database. The sqlite-plugin ist required.
[ADDRESSBOOK:search]
Adds a search bar to perform a fulltext search
[ADDRESSBOOK:index]
Lists all contacts.
[ADRESSSBOOK:index?departments]
- Separate List by departments
[ADDRESSBOOK:addcontact]
Provides a form with which contacts can be added
[ADDRESSBOOK:contact=<nr>]
Show all information about a contact.
[ADDRESSBOOK:print<?option1&option2>]
Creates a printable list
[ADDRESSBOOK:print?department]
- Separate contacts by department[ADDRESSBOOK:print?select=<name>]
- Show only contacts from department<name>
Contact search results are display on the search results page. In order to activate links to show or edit a contact, a page id must be stated, to which the link directs. This target page must contatin an [ADDRESSBOOK:]
-Tag for the request to performed.
Required access level (ACL) to edit the addressbook. The value 'no' uses the classic check: access via the setting of 'ismanager' in $INFO.
- Import and export CSV-Files
- Integration into DokuWikis search should be configurable
- Improve styling of the search box
- Add print styles for contact cards and the index list
- Improve index list showing specified amount of contacts with page flip
- Upload/Download sqlite3-file in admin section
Tested with
- PHP / 7.3
- DokuWiki / Hogfather
- sqlite-plugin / 2020-11-18
The complete data (including the images as blobs) is stored data/meta/addressbook.sqlite3
and can be backuped easily. An addressbook (sqlite3) with 1.000 contacts has a size of approximately 4.1 MB if every contact has a photo. The photo is scaled down and compressed, so it uses about 3-4kB. It is stored within the database as a blob (base64encoded).