This module provides an SVG pedigree chart for the webtrees genealogy application. It is capable of displaying up to 25 generations of ancestors from an individual.
But beware, if you select too many generations, it may take a while and even slow down your system significantly.
Fig. 1: A five-generations pedigree chart (drawn top to bottom)
Fig. 2: A five-generations pedigree chart (drawn left to right)
Requires webtrees 2.2.
There are several ways to install the module. The method using composer is suitable for experienced users, as a developer you can also use git to get a copy of the repository. For all other users, however, manual installation is recommended.
Important
If a previous version of this module is already installed: delete the entire modules_v4/webtrees-pedigree-chart folder before extracting the new ZIP. Extracting on top of an existing folder leaves stale files behind that can clash with the new release — a common cause of Interface … not found errors right after an update.
To manually install the module, perform the following steps:
- Download the latest release of the module.
- Upload the downloaded file to your web server.
- Unzip the package into your
modules_v4directory. - Rename the folder to
webtrees-pedigree-chart
If everything was successful, you should see a subdirectory webtrees-pedigree-chart with the unpacked content
in the modules_v4 directory.
Then follow the steps described in configuration and usage.
Typically, to install with composer, just run the following command from the command line, from the root of your Webtrees installation.
composer require magicsunday/webtrees-pedigree-chart --update-no-devThe module will automatically install into the modules_v4 directory of your webtrees installation.
To remove the module run:
composer remove magicsunday/webtrees-pedigree-chart --update-no-devThen follow the steps described in configuration and usage.
If you are using the development version of Webtrees (main branch), you may also need to install the development version of the module. For this, please use the following command:
composer require magicsunday/webtrees-pedigree-chart:dev-main --update-no-devIf you are using git, you could also clone the current main branch directly into your modules_v4 directory
by calling:
git clone https://github.com/magicsunday/webtrees-pedigree-chart.git modules_v4/webtrees-pedigree-chartThen follow the steps described in configuration and usage.
- Manual installation: Download the new release
.zip, delete the oldmodules_v4/webtrees-pedigree-chartfolder first, and extract the new one. Extracting on top of an existing folder leaves stale files behind that can clash with the new release (a common cause ofInterface … not founderrors after an update). - Composer: Run
composer update magicsunday/webtrees-pedigree-chart --update-no-dev. - Git: Run
git pullinside themodules_v4/webtrees-pedigree-chartdirectory.
Go to the control panel (admin section) of your installation and scroll down to the Modules section. Click
on Charts (in subsection Genealogy). Enable the Pedigree chart custom module (optionally disable the original
installed pedigree chart module) and save your settings.
Fig. 3: Control panel - Module administration
At the charts' menu, you will find a new link called Pedigree chart. Use the provided configuration options
to adjust the layout of the charts according to your needs.
To build/update the JavaScript, you can either use a local Node.js installation or Docker.
No local Node.js installation required. Just run:
make install
make buildTo watch for changes and rebuild automatically:
make watchnvm install node
npm install
npm run preparecomposer update
composer ci:test
composer ci:test:php:phpstan
composer ci:test:php:lint
composer ci:test:php:rector