Web based family history software

Question Marriage Report showing Longest Marriages of those still alive..

  • RickM
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
1 year 2 days ago #1 by RickM
On the Family Stats page, one can see the longest Marriage based on, I'm presuming, one or both partners being deceased.
1] Would it be possible to increase the number of marriages showing to say 20?? OR have an option for ALL relevant Stats to increase the number showing??

2] Would it be possible to have a report either on the Stats Page and/or in the Reports Menu showing the say Top 20 Longest 'Living Marriages' based soled on BOTH partners being alive??

Cheers

Rick M
Tauranga
New Zealand - Nu Tirani

alineofmalkins.com/wt-malkins
Webtrees v2.2.1
Hosted by HostAmarada on litespeed Server, PHP v8.3

Please Log in or Create an account to join the conversation.

More
11 months 3 weeks ago #2 by fisharebest
> Would it be possible to increase the number of marriages showing to say 20??

Some of the statistics allow you to pass additional parameters.

So instead of using #topAgeOfMarriageFamilies#,
you could use #topAgeOfMarriageFamilies:20#

How to find the statistics that take additional parameters? You need to look in the code. app/Statistics.php

You'll see lines like this:

public function topAgeOfMarriageFamilies(string $total = '10'): string

This indicates that this statistic takes a parameter which defaults to 10.

> Would it be possible to have a report either on the Stats Page and/or in the Reports Menu showing the say Top 20 Longest 'Living Marriages' based soled on BOTH partners being alive??

In my experience of genealogy, it is quite difficult to find out about recent deaths. So I think you'd just have lots of people who were "presumed dead at 120" or whatever age you put in your config.

Greg Roach - greg@subaqua.co.uk - @fisharebest@phpc.social - fisharebest.webtrees.net

Please Log in or Create an account to join the conversation.

Powered by Kunena Forum