GenoPro Home
GenoPro Home  |  Get Started With My Genealogy Tree  |  Buy  |  Login  |  Privacy  |  Search  |  Site Map
 

GenoPro Support Forum




Variables of home.htm should be in Config.xml

Click to view RSS...
Author Nbr of "Most Popular Family Names / Most Popular Places"
Posted Sunday, November 4, 2007 - Post #19738
Forum Member

Forum MemberForum MemberForum MemberForum MemberForum MemberForum MemberForum MemberForum MemberForum Member

Customers
GenoPro version: 3.0.1.4

Last Login: Saturday, August 22, 2020
Posts: 39, Visits: 211
The number of "Most Popular Family Names" and "Most Popular Places" displayed in the home.htm file is hardcoded in the skin file home.htm this way

If (iNameLast > 19) Then
        iNameLast = 19                ' Keep only the first 20 families
End If

and

        Places.SortBy("-References.Count") ' Sort by most popular place
        iLast = Places.Count - 1
        If iLast > 19 Then iLast = 19

These constants (19) should be placed as variables in the Config.xml file because 

family names (e.g. Meyer) are much shorter than place descriptions (e.g. Frankenroda/Thüringen, Deutschland) therefore the columns shown are very different in size.

Solution: Set variabel for "Most Popular Family Names" to 29 and for "Most Popular Places" to 14.

But if this is done in the code it is lost when a new updated version is downloaded!  

 

Threaded View

Expand / Collapse
Threaded View
Forum Post Variables of home.htm should be in Config.xml By Erhardt Stiefel ( Sunday, November 4, 2007 )


Similar Topics

Click to view RSS...
Expand / Collapse

Reading This Topic

Expand / Collapse