- Posts: 339
Question Add a FACT
- mac.alter
- Topic Author
- Offline
- Senior Member
Less
More
6 months 4 days ago #1
by mac.alter
Mac.alter [update: 23 Nov 2024]
webtrees 2.2.0 | PHP Version 8.3 | mySQL mysqlnd 8.1.28 | MacOS 14.6 .1 (Sonoma)
Add a FACT was created by mac.alter
I've recently notice that when trying to add a Fact to either a new record OR existing one, there is a dropdown menu for Type. This shouldn't be such. Happened sometime after upgrade as I never saw in previous version.
Mac.alter [update: 23 Nov 2024]
webtrees 2.2.0 | PHP Version 8.3 | mySQL mysqlnd 8.1.28 | MacOS 14.6 .1 (Sonoma)
Please Log in or Create an account to join the conversation.
- fisharebest
- Offline
- Administrator
6 months 4 days ago #2
by fisharebest
Greg Roach - greg@subaqua.co.uk - @fisharebest@phpc.social - fisharebest.webtrees.net
Replied by fisharebest on topic Add a FACT
> This shouldn't be such.
Why do you think this?
FACT/TYPE and EVEN/TYPE are both standard GEDCOM fields.
e.g.
1 FACT Blue
2 TYPE Eye colour
Why do you think this?
FACT/TYPE and EVEN/TYPE are both standard GEDCOM fields.
e.g.
1 FACT Blue
2 TYPE Eye colour
Greg Roach - greg@subaqua.co.uk - @fisharebest@phpc.social - fisharebest.webtrees.net
Please Log in or Create an account to join the conversation.
- bertkoor
- Offline
- Platinum Member
- Greetings from Utrecht, Holland
6 months 4 days ago #3
by bertkoor
stamboom.BertKoor.nl runs on webtrees v2.1.20
Replied by bertkoor on topic Add a FACT
Looks like the dropdown (and data) comes from this third-party module:
github.com/Jefferson49/MyCustomTags/blob...om_tags/FactType.php
github.com/Jefferson49/MyCustomTags/blob...om_tags/FactType.php
stamboom.BertKoor.nl runs on webtrees v2.1.20
Please Log in or Create an account to join the conversation.
- fisharebest
- Offline
- Administrator
6 months 4 days ago #4
by fisharebest
Greg Roach - greg@subaqua.co.uk - @fisharebest@phpc.social - fisharebest.webtrees.net
Replied by fisharebest on topic Add a FACT
Ah - you have a drop-down list instead of free-text.
Do you have a custom module that does this?
Do you have a custom module that does this?
Greg Roach - greg@subaqua.co.uk - @fisharebest@phpc.social - fisharebest.webtrees.net
Please Log in or Create an account to join the conversation.
- mac.alter
- Topic Author
- Offline
- Senior Member
Less
More
- Posts: 339
6 months 4 days ago #5
by mac.alter
Mac.alter [update: 23 Nov 2024]
webtrees 2.2.0 | PHP Version 8.3 | mySQL mysqlnd 8.1.28 | MacOS 14.6 .1 (Sonoma)
Replied by mac.alter on topic Add a FACT
Yes the TYPE should be present but not the dropdown.
Mac.alter [update: 23 Nov 2024]
webtrees 2.2.0 | PHP Version 8.3 | mySQL mysqlnd 8.1.28 | MacOS 14.6 .1 (Sonoma)
Please Log in or Create an account to join the conversation.
- mac.alter
- Topic Author
- Offline
- Senior Member
Less
More
- Posts: 339
6 months 4 days ago #6
by mac.alter
Mac.alter [update: 23 Nov 2024]
webtrees 2.2.0 | PHP Version 8.3 | mySQL mysqlnd 8.1.28 | MacOS 14.6 .1 (Sonoma)
Replied by mac.alter on topic Add a FACT
I will turn this module off and see what happens. If it goes away, will post in Customizing forum to see if this is expected behaviour.
Mac.alter [update: 23 Nov 2024]
webtrees 2.2.0 | PHP Version 8.3 | mySQL mysqlnd 8.1.28 | MacOS 14.6 .1 (Sonoma)
Please Log in or Create an account to join the conversation.
- bertkoor
- Offline
- Platinum Member
- Greetings from Utrecht, Holland
6 months 4 days ago - 6 months 4 days ago #7
by bertkoor
stamboom.BertKoor.nl runs on webtrees v2.1.20
Replied by bertkoor on topic Add a FACT
[edit] messages crossed
stamboom.BertKoor.nl runs on webtrees v2.1.20
Last edit: 6 months 4 days ago by bertkoor.
Please Log in or Create an account to join the conversation.
- Jefferson49
- Offline
- Senior Member
6 months 2 days ago #8
by Jefferson49
Replied by Jefferson49 on topic Add a FACT
I can confirm that the drop down menus for the shown FACT types are created by the
MyCustomTags
custom module. Indeed, this is one area where webtrees can be extended very nicely with a custom module. The MyCustomTags module is kind of a feasibility study, which shows how custom types can be defined and handled.
The code on Github contains the custom tag definitions and type definitions, which I use for my own webtrees installations. For other user purposes, the code is probably not suitable and needs to be adjusted. With some programming background, it should not be diffcult to adjust the type definitons. For example, the INDI:FACT:TYPE definitions can be modified in the FactType.php code by adding/removing type definition entries to an array.
If anyone is interested in specific tag and type definitions, I can provide a modifyed/customized version of the MyCustomTags module. Just post a short description as a Github issue .
On mid term, I will think about adding an user interface for user specific type definitions in the module settings.
The code on Github contains the custom tag definitions and type definitions, which I use for my own webtrees installations. For other user purposes, the code is probably not suitable and needs to be adjusted. With some programming background, it should not be diffcult to adjust the type definitons. For example, the INDI:FACT:TYPE definitions can be modified in the FactType.php code by adding/removing type definition entries to an array.
If anyone is interested in specific tag and type definitions, I can provide a modifyed/customized version of the MyCustomTags module. Just post a short description as a Github issue .
On mid term, I will think about adding an user interface for user specific type definitions in the module settings.
Please Log in or Create an account to join the conversation.
- mac.alter
- Topic Author
- Offline
- Senior Member
Less
More
- Posts: 339
6 months 2 days ago #9
by mac.alter
Mac.alter [update: 23 Nov 2024]
webtrees 2.2.0 | PHP Version 8.3 | mySQL mysqlnd 8.1.28 | MacOS 14.6 .1 (Sonoma)
Replied by mac.alter on topic Add a FACT
I would have moved this over to Customizing had there been reason to continue. As it is, I received offline assistance and things are working.
Mac.alter [update: 23 Nov 2024]
webtrees 2.2.0 | PHP Version 8.3 | mySQL mysqlnd 8.1.28 | MacOS 14.6 .1 (Sonoma)
Please Log in or Create an account to join the conversation.
- mac.alter
- Topic Author
- Offline
- Senior Member
Less
More
- Posts: 339
4 months 4 days ago - 4 months 4 days ago #10
by mac.alter
Mac.alter [update: 23 Nov 2024]
webtrees 2.2.0 | PHP Version 8.3 | mySQL mysqlnd 8.1.28 | MacOS 14.6 .1 (Sonoma)
Replied by mac.alter on topic Add a FACT
I did try to search "My Topics" but didn't find match for the topic. Because I'm using different install of webtrees, didn't have the custom fix added. Thanks.
Mac.alter [update: 23 Nov 2024]
webtrees 2.2.0 | PHP Version 8.3 | mySQL mysqlnd 8.1.28 | MacOS 14.6 .1 (Sonoma)
Last edit: 4 months 4 days ago by mac.alter.
Please Log in or Create an account to join the conversation.