Skip to content

Commit

Permalink
First publish version
Browse files Browse the repository at this point in the history
  • Loading branch information
Gero Gothe committed Dec 27, 2020
1 parent 0dc3981 commit 23dfcd2
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 9 deletions.
6 changes: 1 addition & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
# Addressbook Plugin for DokuWiki

This is a first testing / working version!

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](https://www.dokuwiki.org/plugin:sqlite) ist required.
Expand Down Expand Up @@ -59,8 +57,6 @@ Contact search results are display on the search results page. In order to activ

## Issues / Ideas

* Links from search page must be targeted, then also activate links again

* Import and export CSV-Files
* Integration into DokuWikis search should be configurable
* Improve styling of the search box
Expand All @@ -79,4 +75,4 @@ Tested with

## Data storage

The data 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).
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).
4 changes: 2 additions & 2 deletions action.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@ public function addSearchResults(Doku_Event $event, $param)


if (count($list)<5) {
foreach ($list as $l) $res .= $syntax->showcontact($l['id']);
} else $res .= $syntax->buildIndex($list,false,($this->getConf('search link target') != ''? $this->getConf('search link target'):''));
foreach ($list as $l) $res .= $syntax->showcontact($l['id'],($this->getConf('search link target') != ''? $this->getConf('search link target'):false));
} else $res .= $syntax->buildIndex($list,false,($this->getConf('search link target') != ''? $this->getConf('search link target'):false));



Expand Down
4 changes: 2 additions & 2 deletions plugin.info.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
base addressbook
author Gero Gothe
email gero.gothe@medizindoku.de
date 2020-12-25
date 2020-12-27
name Address Book Plugin
desc Simple addressbook using the sqlite-plugin
url https://github.com/practical-solutions/addressbook
url https://www.dokuwiki.org/plugin:addressbook

0 comments on commit 23dfcd2

Please sign in to comment.