A weebtrees 2.1 custom module to provide custom tags, custom types, custom relationship descriptors, and custom roles in events.
- Provide additional GEDCOM custom tags to be used in webtrees
- Provde additional custom types for certain GEDCOM tags:
- Confirmation (INDI:CONF:TYPE)
- Education (INDI:EDUC:TYPE)
- Events (INDI:EVEN:TYPE)
- Facts (INDI:FACT:TYPE)
- Graduation (INDI:GRAD:TYPE)
- Additional custom types for names (INDI:NAME:TYPE)
- Ordination (INDI:ORDN:TYPE)
- Provide additional custom descriptors for relationships (FAM:_ASSO:RELA, FAM:*:_ASSO:RELA, INDI:ASSO:RELA, INDI:*:_ASSO:RELA)
- Provide additional custom roles in events (*:*:EVEN:ROLE)
- Download the latest code of the module
- Unzip and copy the folder "my_custom_tags" into the "module_v4" folder of your webtrees installation
- Please note that the provided module code only provides a template as a starting point for your own customization/configuration. The provided template contains an example with a configuration used by the author
- Since the module code is just a template for your own customization, it it not planned to provide any releases
- Add/remove GEDCOM custom tags
- Modifiy the function customTags() in MyCustomTags.php and the function customSubTags() in MyCustomTags.php , //Additonal custom tags
- As reference how custom tags are defined in webtrees, you can have a look at the code in webtreesTags() in Gedcom.php and webtreesSubTags() in Gedcom.php
- Add/remove types to be used
- Modifiy the function customTags() in MyCustomTags.php, //Additional types
- Add/remove type definitons
- Modifiy the function values() in xxxType.php (e.g. EventType.php), //Value in GEDCOM => Value shown in webtrees frontend
- Add/remove additional custom descriptors for relationships
- Modifiy the function values() in ExtendedRelationIsDescriptor.php, //Value in GEDCOM => Value shown in webtrees frontend
- Add/remove additional custom descriptors for relationships
- Modifiy the function values() in ExtendedRoleInEvent.php, //Value in GEDCOM => Value shown in webtrees frontend
The latest release of the module was developed and tested with webtrees 2.1.18, but should also run with any other webtrees 2.1 version.
The translation is based on gettext and uses .po files, which can be found in /resources/lang/. You can use a local editor like Poedit or notepad++ to add or modify translations.
Currently, the following languages are already available:
- Dutch
- English
- German
If you want to translate custom tags, types, relationship descriptors, or roles in events, you can also add further translations to the code.
You can add translation to a fact type in FactType.php with the following modification in the code:
- 'Military Service' => I18N::translate('Military Service'),
Afterwards, the translation has to be provided by a .po file, see above.