For issues related to the current stable release please use it's own Help forum.
IMPORTANT:Please read this before using an git or nightly build version: wiki.webtrees.net/en/GIT

Before asking for help please read "How to request help" by clicking on that tab above here.

TOPIC: WebTrees 2.0: Geographic Data Count Badge Colors

WebTrees 2.0: Geographic Data Count Badge Colors 8 months 1 week ago #1

  • dbq-andersons
  • dbq-andersons's Avatar
  • Offline
  • New
  • Posts: 41
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
Attachments:
Bill Anderson | Onalaska, WI | genealogy.dbq-andersons.com
Webtrees 1.7.14 | Apache 2.4.29 | PHP 7.2.19-1 | MySQL 5.7.26
Ubuntu 16.04 LTS Running on a PC in My Basement
The administrator has disabled public write access.

WebTrees 2.0: Geographic Data Count Badge Colors 8 months 1 week ago #2

  • fisharebest
  • fisharebest's Avatar
  • Offline
  • Administrator
  • Posts: 11102
IIRC, red means that the location is not used by any place in your trees.
Greg Roach - This email address is being protected from spambots. You need JavaScript enabled to view it. - fisharebest.webtrees.net
The administrator has disabled public write access.

WebTrees 2.0: Geographic Data Count Badge Colors 8 months 1 week ago #3

  • dbq-andersons
  • dbq-andersons's Avatar
  • Offline
  • New
  • Posts: 41
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.

<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
Attachments:
Bill Anderson | Onalaska, WI | genealogy.dbq-andersons.com
Webtrees 1.7.14 | Apache 2.4.29 | PHP 7.2.19-1 | MySQL 5.7.26
Ubuntu 16.04 LTS Running on a PC in My Basement
The administrator has disabled public write access.

WebTrees 2.0: Geographic Data Count Badge Colors 8 months 1 week ago #4

  • dbq-andersons
  • dbq-andersons's Avatar
  • Offline
  • New
  • Posts: 41
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 1.7.14 | Apache 2.4.29 | PHP 7.2.19-1 | MySQL 5.7.26
Ubuntu 16.04 LTS Running on a PC in My Basement
The administrator has disabled public write access.

WebTrees 2.0: Geographic Data Count Badge Colors 8 months 1 week ago #5

  • dbq-andersons
  • dbq-andersons's Avatar
  • Offline
  • New
  • Posts: 41
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
Attachments:
Bill Anderson | Onalaska, WI | genealogy.dbq-andersons.com
Webtrees 1.7.14 | Apache 2.4.29 | PHP 7.2.19-1 | MySQL 5.7.26
Ubuntu 16.04 LTS Running on a PC in My Basement
The administrator has disabled public write access.
Powered by Kunena Forum