Difference between revisions of "Generating Web pages"

From Gramps
Jump to: navigation, search
(blank page and redirect)
(3 intermediate revisions by 2 users not shown)
Line 1: Line 1:
#REDIRECT [[Howto: Make a genealogy website with Gramps]]
Read this page instead in the manual: [[Gramps_3.3_Wiki_Manual_-_Reports_-_part_7#Narrated_Web_Site|Narrated Web Site]], for info in 3.3.x.
This section is now part of the official documentation
==Selecting the output==
This section is now part of the official documentation
==Applying a filter==
Added to the official documentation
==Applying a style sheet==
moved to official documentation
==Character set encoding==
Because of GRAMPS internationalization ability, the default character set for the HTML pages is UTF-8. This provides support for virtually all characters.
The Apache web server is sometimes misconfigured to override the character set specified in an HTML page. This causes problems with the UTF-8 character set generated by GRAMPS, distorting characters on the screen.
If your web server is misconfigured and you do not have privilege to fix the configuration, you may solve this problem by overriding the default character set to match what your web server may be expecting.
==Copyright notice==
International copyright law reserves all rights to your data. You own the data, and people must get your permission to use it. In genealogy, however, sharing data is a common ideal. It this case, you may wish to grant the user more rights.
While the default for GRAMPS is to place a notice indicating that all rights are reserved, we give you the option to place your site under one of several of the [http://creativecommons.org/licenses Creative Commons licenses]. With a Creative Commons license, you grant user's certain permission to use your data without requiring them to contact you directly for permission.
See the [http://creativecommons.org Creative Commons] web site for more information.
==Controlling page generation==
Three additional pages can be generated by the web page generator. The Home page is a page that will display an image and a whatever text you wish. To enable this page, choose a Media Object from the '''Home Media/Note ID''' menu on the '''Page Generation''' tab. If the media object contains an image, the image is displayed at the top of the page. If the Media Object contains a Note, the Note's text is used for the text of the page. A second page, the Introduction page, works similarly. Just choose the Media Object in the '''Introduction Media/Note ID''' menu.
If you choose to include a contact page, The researcher information stored in the database is displayed, along with the information specified in the '''Publisher contact/Note ID''' menu. Please use this page with caution, since you may consider your contact information to be private.
Privacy of personal information is an important issue on the web today. GRAMPS tries to give you control over the information that is presented.
GRAMPS provides two options to control the privacy of your information. If you select the '''Do not include records marked private''' option, any data that is marked as private will not be displayed on the generated site. If you select '''Restrict information on living people''', GRAMPS will attempt to determine which people have the potential of still being alive, and will omit these people from the database. Some countries have laws that indicate that a certain number of years must pass after someone's death before information can be published. The '''Years to restrict from a person's death''' option allows you to specifiy how many years a person must be deceased before the information is included.
Please note that it is your responsibility to double check all information in the pages for any privacy information. GRAMPS cannot be held responsible for any privacy issues.
==Adding custom code your pages==
Note: If you are not interested in customizing your pages, you may skip the section.
The previous web generator allowed you to customize your pages using HTML templates. Your data would be substituted for certain markers in the code.
This method proved to be too cumbersome for most users. The Narrative Web Page Generator introduces a simpler mechanism. On the '''Page Generation''' tab, you may specify text (including HTML code) that will be inserted into each page.
To create this code, you need to create a Media Object marked as an '''internal note'''. To create this, add a new Media Object from the Media View, and select the '''internal note''' option. You may then enter your HTML code.
Two div sections are added to the page - userheader and userfooter. The corresponding HTML code is inserted into the HTML page surrounded by div markers. You can customize your style sheet to provide additional formatting and positioning information to control these sections.
==More Info==
* [[Howto: Make a genealogy website with GRAMPS]]: a detailed tutorial.

Latest revision as of 03:24, 17 July 2015