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

GenoPro Support Forum




Suppressing the A - Z in the various TOC's ?

Click to view RSS...
Author How do you get rid of first letter (a-z) grouping in the TOC's (places, individuals, pictures, citations?)
Posted Tuesday, April 22, 2008 - Post #21452
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Forum Members

Last Login: Saturday, November 8, 2008
Posts: 4, Visits: 20
I'm attempting to customise the web report skin, but I'm finding it a painfully slow process as I don't really code (I'm more of a cut and plagerise merchant).

I really really would like to stop the TOC's being grouped by the first letter (a-z). It's quite tedious to expand the "a", to see all the items beginning with "a". While I'm sure it is a great timesaver for people with hundreds of surnames - my file only has 50 or so surnames.

Can you tell me what code changes I need to make to stop this top level grouping ?

many thanks

Posted Tuesday, April 22, 2008 - Post #21453
Legendary Master

Legendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary Master

Administrators
Moderators
Customers
Gamma
FamilyTrees.GenoPro.com
Translator
GenoPro version: 3.1.0.1

Last Login: Tuesday, April 29, 2025
Posts: 4,886, Visits: 22,780
The report generator has an optional parameter to change threshold before automatically collapsing long lists.

You are welcome to play around with this value and determine which is the limit you want.  You will have to set this value each time you generate a report.  Once you want to make this value more permanent, edit the file Config.xml in the folder "Customized English Narrative Report"

You will see the following:

<Parameters _PathPictures="pictures/"
   _fValidatePictureCache="Y"
   fUseTreeIndexes="Y"
   fHidePictureName="N"
   fShowPictureDetails="N"
   fHideFamilyDetails="Y"
   fJoinPlaceNames="N"
   fJoinSourceCitationNames="N"
   fCollapseNotes="Y"
   fCollapseReferences="Y"
   fLinkToSvgMap="Y"
   fCompressSvg="Y"
   cTocExpand="1000"
   PictureSizeSmall="100x100"
   PictureSizeLarge="250x250"
 />

The documentation for cTocExpand is:

Determines whether or not tree indexes are initally displayed expanded or not. A value of -1 means always expand the index, 0 means never expand the index and a value > 0 indicates expand index if number of entries is less than or equal to that value. The value is initially set at 1000.


Edited: Tuesday, April 22, 2008 by GenoProSupport
Posted Tuesday, April 22, 2008 - Post #21461
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Forum Members

Last Login: Saturday, November 8, 2008
Posts: 4, Visits: 20
I've already had a good play with that setting.

The trouble is that it's all or nothing (and it's global - applying to all the TOC pages - individuals, families, places, sources, etc).

Say for instance I have 500 individuals in my tree - if I set the "Item limit before indexes are shown in 'collapsed' view" to 510, the TOC shows the list fully expanded : every letter of the alphabet expanded, and every family name expanded, showing every individual. If I set the limit below 500 - I just see the alphabet, and have to expand each letter.

What I'm trying to achieve is a default view where the top level of the TOC is the surname (for individuals), the parent place (for places), the parent source (for citations), and I click to expand each surname.

eg:

Name Index

+Butler (5 individuals)
+Baker (30 individuals)
+Harper (40 individuals)

One of my issues with the a-z level is that it it lengthens the list for the same content :
+B
 +Butler (5 individuals)
 +Baker (30 individuals)
+B
 +Harper (40 individuals)

cheers,

Cary

Posted Tuesday, April 22, 2008 - Post #21462
Legendary Master

Legendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary Master

Administrators
Moderators
Customers
Gamma
FamilyTrees.GenoPro.com
Translator
GenoPro version: 3.1.0.1

Last Login: Tuesday, April 29, 2025
Posts: 4,886, Visits: 22,780
I understand what you mean - it is a good suggestion.
Posted Wednesday, April 23, 2008 - Post #21464
Legendary Master

Legendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary Master

Administrators
Customers
Important Contributors
FamilyTrees.GenoPro.com
GenoPro version: 3.1.0.1

Last Login: Yesterday @ 8:45 PM
Posts: 3,422, Visits: 26,466
Looks like it is quite easy to remove the initial letter level from the Individual index if you are happy creating a custom skin. Just changes lines 1008 & 1033 of Code\Lang.vbs
From
   If g_fUseTreeIndexes Then

To
   If False Then

Alternatively just remove these two If statements and their dependent statements entirely.

Haven't tested it exhaustively but seems to work. Line numbers refer to version Narrative_2.0.1.5RC10.

Perhaps I'll add a config option to do this in the future.


'lego audio video erro ergo disco' or "I read, I listen, I watch, I make mistakes, therefore I learn"
Posted Friday, April 25, 2008 - Post #21506
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Forum Members

Last Login: Saturday, November 8, 2008
Posts: 4, Visits: 20
Fantastic - that does the trick !

I've also been able to supress the A-Z level for a number of the other TOC's. Some I've done as per below :

if strFirstChar <> strFirstCharPrev Then
     'If strFirstCharPrev <> "" Then  Report.WriteLn "</ul></li>"
     'Report.WriteFormattedLn "<li class='xT2-{}' onclick='xTclk(event,""2"");'> <span class='xT-i bold'>{&t}</span><ul>", Util.IfElse(fTreeOpen,"o","c"), strFirstChar
     strFirstCharPrev = strFirstChar
    End If

Thank you very much !



Similar Topics

Click to view RSS...
Expand / Collapse

Reading This Topic

Expand / Collapse
Active: 3 - 1 guest, 1 member, 0 anonymous.
Refresh