Difference between revisions of "templm"
m (update from french version) |
m (particles + static_path) |
||
Line 17: | Line 17: | ||
max_dates= | max_dates= | ||
maxlev=2 | maxlev=2 | ||
− | menu= | + | <!--menu=--> |
misc=no | misc=no | ||
move_comment=yes | move_comment=yes | ||
Line 31: | Line 31: | ||
== Description of the variables == | == Description of the variables == | ||
=== Style sheets === | === Style sheets === | ||
− | * {{c|1=css=}}: grey background ({{git|hd/etc/templm|css.css}}). | + | * {{c|1=css=}}: default css, grey background ({{git|hd/etc/templm|css.css}}). |
− | * {{c|1=css=1}}: | + | * {{c|1=css=1}}: contrasted css, black background ({{git|hd/etc/templm|css1.css}}). |
=== Birth/death symbols === | === Birth/death symbols === | ||
Line 41: | Line 41: | ||
=== AutoComplete === | === AutoComplete === | ||
Loads lists of preexisting data in the base when entering new data on forms. | Loads lists of preexisting data in the base when entering new data on forms. | ||
− | * {{c|1=datalist_xx=}}: | + | * {{c|1=datalist_xx=}}: Do nothing. |
− | * {{c|1=datalist_xx=1}}: | + | * {{c|1=datalist_xx=1}}: Loads the whole list at once. |
− | * {{c|1=datalist_xx=2}}: | + | * {{c|1=datalist_xx=2}}: Loads a sub-list after typing their characters |
Available lists: | Available lists: | ||
− | * {{c|1=datalist_fn}}: | + | * {{c|1=datalist_fn}}: First names. |
− | * {{c|1=datalist_sn}}: | + | * {{c|1=datalist_sn}}: Surnames. |
− | * {{c|1=datalist_place}}: | + | * {{c|1=datalist_place}}: Places. |
− | * {{c|1=datalist_src}}: | + | * {{c|1=datalist_src}}: Sources. |
− | * {{c|1=datalist_occu}}: | + | * {{c|1=datalist_occu}}: Occupation. |
=== Age computation === | === Age computation === | ||
Line 65: | Line 65: | ||
=== Number of generations === | === Number of generations === | ||
− | Number of generations displayed in the “Descendants” of a personal page. If {{c|maxlev}} is greater than 1, then great- | + | Number of generations displayed in the “Descendants” of a personal page. If {{c|maxlev}} is greater than 1, then great-grandparents are displayed in the Ascendants section. |
− | * {{c|1=maxlev=2}}: | + | * {{c|1=maxlev=2}}: Show two generations. |
− | + | <!-- broken by A2! | |
=== Menus position === | === Menus position === | ||
Position scrolling menus at the top of the page, or a static menu at the bottom. | Position scrolling menus at the top of the page, or a static menu at the bottom. | ||
− | * {{c|1=menu=}} | + | * {{c|1=menu=}}: Position scrolling menus at the top of the page. |
− | * {{c|1=menu=1}} : Position a static menu at the bottom of the page. | + | * {{c|1=menu=1}}: Position a static menu at the bottom of the page. |
− | + | --> | |
=== Display the wiki link === | === Display the wiki link === | ||
− | Display the wiki link (<nowiki>[[first_name/patronyme/0/Ftirst_name SURNAME]]</nowiki>) and the various ways a person is called on its page | + | Display the wiki link (<nowiki>[[first_name/patronyme/0/Ftirst_name SURNAME]]</nowiki>) and the various ways a person is called on its page. |
* {{c|1=misc=surname}} | * {{c|1=misc=surname}} | ||
=== Move the marriage comment === | === Move the marriage comment === | ||
− | + | On the family form, if there is a comment for “married/not married/engaged/no mention” section, then the comment is automaticaly moved to the corresponding event. | |
* {{c|1=move_comment=yes}} | * {{c|1=move_comment=yes}} | ||
=== Surname display === | === Surname display === | ||
− | Converts automatically “first_name” to “First_name” and “particles surname” to “particles SURNAME” in the data capture forms (doesn’t work for first names and surnames | + | Converts automatically “first_name” to “First_name” and “particles surname” to “particles SURNAME” in the data capture forms (doesn’t work for aliases of first names and surnames). |
* {{c|1=uppercase=yes}} | * {{c|1=uppercase=yes}} | ||
=== Add particles === | === Add particles === | ||
+ | Add particles to the already defined particles “af, av, d, dal, de, den, des, di, du, of, und, van, vor, zu et zur”. | ||
+ | * {{c|1=particles="AF","AV","D","DAL","DE","DEN","DES","DI","DU","OF","UND","VAN","VON","ZU","ZUR","PARTICLE","PARTICLE2"…}} | ||
+ | : Warning: add new particles after the existing list, the particles are defined without spaces and in capitals (they'll end in lowercase one day!). | ||
+ | |||
if both uppercase=yes and particles=yes, then converts “first_name de surname" into "First_name de SURNAME". | if both uppercase=yes and particles=yes, then converts “first_name de surname" into "First_name de SURNAME". | ||
* {{c|1=particles=yes}} | * {{c|1=particles=yes}} | ||
Line 100: | Line 104: | ||
Show flags in the upper right menu. | Show flags in the upper right menu. | ||
* {{c|1=show_flag=yes}}: show all flags. | * {{c|1=show_flag=yes}}: show all flags. | ||
+ | |||
+ | === Path to .js and .css files === | ||
+ | Allow to specify the static path of javascript and css files for an installation in [[CGI]] mode when no .htaccess is used. | ||
+ | * {{c|1=static_path=/gw/etc/}} : for example if the template files are at their default installation place. | ||
=== Number of columns for display === | === Number of columns for display === |
Revision as of 20:36, 7 June 2016
Language: | English • français |
---|
templm
uses specific configuration variables that must be added in /bases/base.gwf
:
css=1 birth_symbol= death_symbol= datalist_fn=2 datalist_sn=2 datalist_occu=2 datalist_place=2 datalist_src=2 event_age=yes jquery=yes max_dates= maxlev=2 <!--menu=--> misc=no move_comment=yes uppercase=no particles=no setup_link=no setup_http= show_flag= static_path= wide=no
Description of the variables
Style sheets
Birth/death symbols
Allow to change default symbols for births and deaths, respectively “°” and “†”, with another character.
birth_symbol=
death_symbol=
AutoComplete
Loads lists of preexisting data in the base when entering new data on forms.
datalist_xx=
: Do nothing.datalist_xx=1
: Loads the whole list at once.datalist_xx=2
: Loads a sub-list after typing their characters
Available lists:
datalist_fn
: First names.datalist_sn
: Surnames.datalist_place
: Places.datalist_src
: Sources.datalist_occu
: Occupation.
Age computation
On a personal page, display the age of parents at birth, and the age of the person for each other events.
event_age=yes
jquery functions
If jquery is active, the number of ancestors, implexes and descendants will be displayed. This also activates automatic locations, professions, sources and witness lookup in personal and family update forms.
jquery=yes
Shortest path
Deactivate “shortest path” links in statistics if more than n dates.
max_dates=n
Number of generations
Number of generations displayed in the “Descendants” of a personal page. If maxlev
is greater than 1, then great-grandparents are displayed in the Ascendants section.
maxlev=2
: Show two generations.
Display the wiki link
Display the wiki link ([[first_name/patronyme/0/Ftirst_name SURNAME]]) and the various ways a person is called on its page.
misc=surname
Move the marriage comment
On the family form, if there is a comment for “married/not married/engaged/no mention” section, then the comment is automaticaly moved to the corresponding event.
move_comment=yes
Surname display
Converts automatically “first_name” to “First_name” and “particles surname” to “particles SURNAME” in the data capture forms (doesn’t work for aliases of first names and surnames).
uppercase=yes
Add particles
Add particles to the already defined particles “af, av, d, dal, de, den, des, di, du, of, und, van, vor, zu et zur”.
particles="AF","AV","D","DAL","DE","DEN","DES","DI","DU","OF","UND","VAN","VON","ZU","ZUR","PARTICLE","PARTICLE2"…
- Warning: add new particles after the existing list, the particles are defined without spaces and in capitals (they'll end in lowercase one day!).
if both uppercase=yes and particles=yes, then converts “first_name de surname" into "First_name de SURNAME".
particles=yes
Link to gwsetup
Display a ling to gwsetup on personal pages.
setup_link=yes
gwsetup port number
Provides a URL to gwsetup with the appropriate value of the -p
parameter. Default is localhost:2316.
setup_http=
Show flags
Show flags in the upper right menu.
show_flag=yes
: show all flags.
Path to .js and .css files
Allow to specify the static path of javascript and css files for an installation in CGI mode when no .htaccess is used.
static_path=/gw/etc/
: for example if the template files are at their default installation place.
Number of columns for display
Alters display of personal pages:
wide=yes
: single column display (÷)wide=no
: two columns display (·|·).
GeneWeb Manual
- Download and install GeneWeb program under GNU/Linux, Mac OS X, Microsoft Windows, FreeBSD; on Mac OS X, Linux or Windows using Docker; or in CGI mode behind a web server.
- Understand GeneWeb server, homonym, consanguinity.
Use and manage genealogical databases
- Import Gedcom
.ged
or GeneWeb.gw
files with gwsetup or in command-line. - Update datas (add/remove individuals and families), merge duplicates, type dates.
- Use wikitext syntax, macros, keyboard shortcuts.
- Clean, recover, rename, save, archive a database.
- Merge and split multiples databases.
Technical annex
- Personalize CSS, header and trailer, templates, lexicon and declension.
- Configuration file
.gwf
(for templm), wizard notes, passwords for friends/wizards and access restrictions to databases. - Add images in notes, further remarks for experts.