Regroup Family Profile

From TNG_Wiki
Jump to: navigation, search
Construction This mod does not work in TNG 10.1 or above. I keep thinking that I'll get to it, but I'm not sure when I will.
Robin Richmond
Construction


Regroup Person Profile
Summary Reduces on-screen scrolling and paper print size of the family profile (the old Family Group Sheet), largely by organization the individual profiles into two columns.
Validation
Mod Updated {{{mod_last_update}}}
Download link For
TNG 10.1.0
TNG 10.0.1

regroup_family_profile_v10.0.1.3.zip
Download stats
Author(s) Robin Richmond
Homepage Robin Richmond's Genealogy Database
Mod Support My Mod Support form or TNG Community Forums
Contact Developer My Mod Support form
Latest Mod 10.0.1.3
Min TNG V 10.0.1
Max TNG V 10.1 - Not 10.1.3 nor 11.0
Files modified
familygroup.php, css/genstyles.css
Related Mods
Correct functioning of this mod requires the Regroup Person Profile mod, which does similar things to the Person Profile.
Notes
Because the Family Group Worksheet V10 that generates a functional Family Group Sheet that can be used to submit data to a site editor, I'm generally referring to the old Family Group Sheet produced by familygroup.php as the "Family Profile".


Purpose of the Mod

To reduce vertical scrolling and reduce the printed page size of the Family Profile (the Family Group Sheet).

Mod Parameter

The HTML cellpadding parameter that controls whitespace within the HTML tables. The original TNG module uses cellpadding=4. The mod defaults to cellpadding=2.

Compatibility With Other Mods

This mod needs the Regroup_Person_Profile mod to function correctly, though it does install and work without Regroup_Person_Profile. I've found no incompatibilities in the installation of other mods, but there could be some in the functionality of other mods.

Requirements

  • A working TNG installation.
  • An installed current version of the Mod Manager.
  • You should backup familygroup.php
  • Regroup_Person_Profile should be installed (before or after this module is installed).

Automated Installation

  1. Remove and delete previous version of this mod.
  2. Backup the files updated by this mod. They are listed in the panel at the upper right.
  3. Download the .zip file, Extract its .cfg file to the mods folder.
  4. Follow the normal automated installation for Mod Manager, as shown in the example Mod Manager - Installing Config Files.

In the event of a problem

  1. Try using the Mod Manager Remove capability
  2. Contact me through My Mod Support form.

Visualization of this Mod

This visualization shows the old and the new side-by-side. But part of the old is snipped out, and the

entire new version is shown. The new two-column version does work for printer page widths. More subtle changes include:

  1. The generic placeholder images are now smaller, as a result of Regroup Person Profile. (The image itself hasn't changed; it has just been shrunk for display.)
  2. Empty burial and marriage events are no longer shown, and blank lines for missing parents (of the parents) are no longer shown.
  3. As in the person profile page, sources are initially displayed with just the source title. A button lets the user display the citation details or suppress them again.
Regroup family profile-b3.png

CSS Rules and Adjusting Whitespace

This mod removes several hard breaks, and introduces new CSS classes and an HTML tag ID to allow a TNG administrator to use CSS rules to reintroduce whitespace that was caused by the break tags that have been removed. The relevant new HTML ID tag encloses the primary content of the page (below the navigation bar with the "Family" tab above the "Family Information" link) in a div with id="famgroup".

New style rules in css/genstyle.css include:

.fglabelcol { width:7em; } /* Smaller width in the label column */
.fgleft {float:left; width:49%;}   /* left side of side-by-side data */
.fgright {float:right; width:49%;} /* Right side of side-by-side data */
/* fgwrapper is intended to contain the fgleft and fgright columns. The overflow
   property should constrain the left and right floats to the fgwrapper div. */
.fgwrapper { overflow:hidden; }
.fgseparator {border-top:medium solid black;} /* Separates parents from children */

Unlike the person profile, the family profile wraps all of its data tables inside the standard TNG class .titlebox. To add whitespace after each titlebox, without affecting other pages that use .titlebox, add a descendant rule like this:

#familygroup .titlebox {margin-bottom:1ex; }

Or, to add some whitespace only below the side-by-side parents, and below the two columns of children you could add a bottom margin to .fgwrapper:

.fgwrapper { margin-bottom:1ex; }  /* This rule is in addition to the existing .fgwrapper rule. */

(See also notes about whitespace and styles in Regroup Person Profile)

Mod Change History

Mod Version TNG Version Date Note
10.0.1.3 10.0.1 - 10.1 27 Dec 2014 Works with the TNG v10.1 beta
10.0.1.2 10.0.1 27 Apr 2014 Production release, with the two-column display.
10.0.1.0 10.0.1 15 Apr 2014 Initial pre-release.

Sites using this mod

If you download and install this mod, please add your site to the table below.

URL User Note Mod-Version TNG-Version User-language
Robin Richmond's Genealogy Database Robin Richmond Mod developer 10.0.1.3 10.0.3 English