A common question from Second Site users is how to create person links in user-controlled content such as the main page. Links can be constructed via Person Link User Items, and that's the best method when adding a link to the main menu or to a SubPage. In other content, such as the static content properties, the Person Link User Item is not available.

Links can be constructed completely manually via HTML, but that is error-prone; changes to site properties or the genealogy data can change the page number of person page entries which will break manually constructed links. It's better to construct the link using a combination of HTML and the Page.PersonHREF() script function.

Page.PersonHREF() Links

The Page.PersonHREF() function helps create links to people in the dataset. If the person's entry moves from one page to another, the link will be updated when you remake the site.

You can add a link by adding the following text anywhere that Second Site accepts script statements:

<A HREF="<%=Page.PersonHREF(2)%>">Person's Name</A>

In the example above, "2" should be replaced by the ID of the person to whom the link should lead.

Where Page.PersonHREF() Is Valid

You can use the Page.PersonHREF() function anywhere that Second Site accepts script statements, which includes:

On This Page