Web based family history software

Question WebTrees 2.0: Geographic Data Count Badge Colors

  • dbq-andersons
  • Topic Author
  • Offline
  • New Member
  • New Member
More
5 years 5 months ago #1 by dbq-andersons
Hi Everyone,

Question about the new Geographic data control panel in 2.0 (which I LOVE, by the way). What exactly does the red background color mean behind the number of sub-levels for a given place? I think I have figured out gray, green (more of a teal, I know) and yellow, but the red is confusing me.

In my attachment, you can see the multiple red-backgrounded numbers on certain Illinois counties. All of the red-numbered counties do have that number of towns under them and those towns do have valid coordinates. I guess I'm curious as to what the criteria are to turn the background of that badge to red and how do I turn them green when they do have valid places underneath them.

Thanks,

Bill

Bill Anderson | Onalaska, WI | genealogy.dbq-andersons.com
webtrees 2.1.16 | Apache 2.4.52-1 | PHP 8.1.2-1 | MySQL 8.0.32-0
Ubuntu 22.04.1 LTS Running on a PC in My Basement
Attachments:

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

More
5 years 5 months ago #2 by fisharebest
Replied by fisharebest on topic WebTrees 2.0: Geographic Data Count Badge Colors
IIRC, red means that the location is not used by any place in your trees.

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

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

  • dbq-andersons
  • Topic Author
  • Offline
  • New Member
  • New Member
More
5 years 5 months ago #3 by dbq-andersons
Replied by dbq-andersons on topic WebTrees 2.0: Geographic Data Count Badge Colors
Thanks for the reply, Greg. I don't think that's it

I have "Bensenville, Dupage, Illinois, United States" in my tree as an event location and it still has a red badge (badge-danger in the page source code)) in the Geographic data list.
Also in DuPage County, Illinois, I have Naperville in my tree as an event location. Its badge is grey (badge-secondary in the page source-code)). I have attached a jpg showing both of these.

I did some digging through the source code. I found this line in resources/views/admin/locations.php that sets the badge style in that particular place on that page.

Code:
<span class="badge badge-pill badge-<?= $place->badge ?>">

I'm still working to figure out how $place->badge translates into info, secondary, warning or danger. Admittedly, my rusty PHP skills were never that great; I'll keep digging.

Any insight would be greatly appreciated.

Thanks,

Bill

Bill Anderson | Onalaska, WI | genealogy.dbq-andersons.com
webtrees 2.1.16 | Apache 2.4.52-1 | PHP 8.1.2-1 | MySQL 8.0.32-0
Ubuntu 22.04.1 LTS Running on a PC in My Basement
Attachments:

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

  • dbq-andersons
  • Topic Author
  • Offline
  • New Member
  • New Member
More
5 years 5 months ago #4 by dbq-andersons
Replied by dbq-andersons on topic WebTrees 2.0: Geographic Data Count Badge Colors
I think I'm on to something. Looks like it has to do with Family vs. Individual attachment of a place name. Trying a few experiments. More to come...

Bill Anderson | Onalaska, WI | genealogy.dbq-andersons.com
webtrees 2.1.16 | Apache 2.4.52-1 | PHP 8.1.2-1 | MySQL 8.0.32-0
Ubuntu 22.04.1 LTS Running on a PC in My Basement

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

  • dbq-andersons
  • Topic Author
  • Offline
  • New Member
  • New Member
More
5 years 5 months ago #5 by dbq-andersons
Replied by dbq-andersons on topic WebTrees 2.0: Geographic Data Count Badge Colors
I did some checking through my tree and wherever cities/towns have the red badge, but I can confirm them in my tree, they are for marriages only (listed as family events).

In my attached example, Berkeley and Pleasanton are attached only to marriages and nothing else. Hayward and Oakland are attached to individual events. Suspect that whatever mechanism checks to see whether a place is used is only checking individual events and not family ones.

Thanks,

Bill

Bill Anderson | Onalaska, WI | genealogy.dbq-andersons.com
webtrees 2.1.16 | Apache 2.4.52-1 | PHP 8.1.2-1 | MySQL 8.0.32-0
Ubuntu 22.04.1 LTS Running on a PC in My Basement
Attachments:

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

Powered by Kunena Forum
}