Jump to content
TNG Community

Links to documents outside TNG


Torben Aastrup

Recommended Posts

Torben Aastrup

How can I add a new history and link the document outside the histories folder (to a folder outside the TNG environment)?

(I can make a link to a subfolder under the histories-folder)

Link to comment
Share on other sites

  • 2 weeks later...

I add html links to the Histories and Documents section by creating a simple html file with content as per the following example:

<head>

<META HTTP-EQUIV="Refresh" CONTENT="0;URL=http://freepages.genealogy.rootsweb.com/~fettesi/unique.htm">

</head>

In this case I called the file 172a.html and I include the following words in the Notes field for the item in the Histories and Documents:

Use your browser back button to return from this linked site

Hope this help you.

Ian Fettes

Link to comment
Share on other sites

Torben Aastrup

Links to documents outside TNG

Thanks for the advise.

I have now three different ways to make links to document outside the Histories-folder in TNG:

A. Link to a site on the whole internet (by Ian Fettes):

Make a simple html-file with this content:

<html>

<head>

<META HTTP-EQUIV="Refresh" CONTENT="0;URL=http://theinternetaddress">

</head>

</html>

Save the file as xyz.html and upload this file to the Histories-(sub)folder. Then attache the file to your ancestor(s), as described in this folder.

You can make a little note describing the link and the following advise:

”Use your browser back button to return from this linked site”

B. Link to files on your own site (by Darrin Lythgoe):

You have to expand your "histories" area to include more. For example, you could do this:

1. Change your Root Path to point to the root of your web site instead of the TNG folder. Also, remove the ending slash.

2. Change the Histories path to include a leading slash, plus the path where the histories are located.

3. Change all other paths (photos, backups, etc.) to include a leading slash, plus the TNG folder, plus the photos folder name.

So, you may have had this before:

Root Path = /mysite/genealogy/

Histories Path = histories

Photos Path = photos

Now you would have:

Root Path = /mysite

Histories Path = /althistoriespath

Photos Path = /genealogy/photos

[New Root Path: /customers/mysite/mysite/httpd.www

Note that the trailing slash has been removed.]

But by this way you cannot link to histories outside of your own web site.

Darrin highly recommend that you upgrade to 4.1.1 before trying that, however, as the bug (losing your settings when changing the root path) was fixed in that release.

C. Link to files on your own site (by Torben Aastrup):

You can attache a file elsewhere in another folder on your own site making a relative address to the filename in the Add New Histories section:

../../folder1/folder2/

The whole path will be as follow: ../../folder1/folder2/filename.htm

(../ goes up from the Histories-folder, ../ goes further up to the root of your site, /folder1 goes down to this folder and so on)

You will have to know the folder- and filename, you cannot browse in this way.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...