Linking to Files Relative to the Data File's Location

Glossary  Return to Start  Previous  Next

 

You may want to keep attachment files in a folder relative to the location of this data file's location, for example in a subfolder of this data file's folder. This can be useful in case you need to move the data file together with its attachments to a new location.

 

If you use this option, you can move this data file and all linked files, and, as long as the subfolder structure is identical within the new folder, all file links will be relocated using relative links.

 

NOTE:For more information on the use of relative paths in locating targets of file links, see About File Links and Relative Paths.

 

If you change the way that Personal Knowbase locates files with incomplete paths, this setting affects the targets of attachments, hypertext links, and actives links.

 

To locate linked files with incomplete paths relative to the data file's location:

 

Select the File Properties command from the File menu.

 

The File Properties dialog box is displayed.

 

Select the Articles tab.

 

In the section for Location for Targets of Relative Links, select the option for Use current file's location.

 

At the bottom of the section, after the word Location:, the folder location of this data file is displayed.

 

Under that section, click on the checkbox to remove the check mark for Save full pathnames for new file or folder targets.

 

This causes all new articles that you create in this data file to use relative links by default. In this case, all links that you create to files in the relative path location will automatically have incomplete path names so that they will always be treated as relative links.

 

Note that this setting does not apply to existing articles. To cause existing articles to automatically create relative links, un-check the corresponding checkbox in the Articles Properties of each affected article.

 

Select the OK button to exit the File Properties dialog box.

 

Personal Knowbase warns you that you have changed the path used for relative links.

 

Click Yes to accept the change.

 

 

NOTE:Use relative links with caution and planning, since changing your option for locating relative links can break every incomplete file link in your data file.

 

 

Related Procedures:

Linking to Files Relative to an Arbitrary Folder

 

See Also:

About Article Attachments

About Hypertext Links

File Properties Command (File Menu)

File Properties Dialog Box: Articles