diff --git a/README.md b/README.md index 686005e..82e2dcd 100644 --- a/README.md +++ b/README.md @@ -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. @@ -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 @@ -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). diff --git a/action.php b/action.php index 27b2aa9..97581d1 100644 --- a/action.php +++ b/action.php @@ -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)); diff --git a/plugin.info.txt b/plugin.info.txt index 4708a2c..5184da9 100644 --- a/plugin.info.txt +++ b/plugin.info.txt @@ -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