Creating hyperlinks made easy
We will henceforth use the term insert a hyperlink rather than create a hyperlink to describe this process, since the hyperlink is inserted into the existing text. The Tree1.tpd file will again serve as our example.
Method 1 - Shift+Ctrl+Click - the quickest way
Let's insert an underlined hyperlink from node B's article to the Root node, but before commencing this exercise, label their articles by typing "Node B" and "Root node" into their respective articles so we can see to which node each article belongs when it is visible1. Add one or more blank lines below this text. Then:
- Select Node B, whose article will store the link(Fig. 1).
- Press and hold down the Shift and Ctrl keys, then left-click the Root node. At this point the mouse cursor will change to a pointing hand (Fig. 2).
- Drag the mouse cursor to where you want to insert the hyperlink and left-click to insert the hyperlink (Fig. 3).
- Finally, to test it, double-click the link2 and it should take you to the Root node (Fig. 4)!
Method 2 - Copy⁄Paste node as hyperlink
Let's insert an underlined hyperlink from node A to the Root node using this method. Label A's article and insert some blank lines as described above, then:
- Right-click on the Root node in the Tree pane and select Copy ⁄ Node as hyperlink, or press Shift+Alt+K (for hyperlinK) while the Root node has focus. This saves the Root node's node ID and node title in TreePad (not in the Windows Clipboard);
- Now select Node A and right-click in its article where you wish to insert the hyperlink. Select Paste special ⁄ Paste node as hyperlink, or simply click in the article where you wish to insert the link and press Shift+Alt+P (for Paste). A hyperlink to the Root node will be inserted.
This method is excellent when the hyperlink and its target are widely separated, or when you need to paste hyperlinks to the same target node in several articles. For further details see Copying and pasting hyperlinks.
Method 3 - Insert a hyperlink to a node in the Bookmarks, History or Search Results pane
Let's use the History pane as our example. Click the History pane button below the article to open the History pane. If it only contains the current node, select a few more nodes until the History list builds up, making sure node A is included since this exercise involves creating a hyperlink from the Root node to node A. Here's how to do it:
- Make sure node A is the selected node in the History pane by left-clicking it so that it is actively highlighted3.
- Leaving the History pane open, click the Root node in the Tree pane to make it the current node, then transfer focus to its article by clicking where you wish to insert the hyperlink.
- Either click Main menu ⁄ Insert ⁄ Link(s) to ⁄ Selected node in Accessory pane or press Shift+Ctrl+N (for Node) to create a link in the Root node's article to node A.
This method is particularly useful for creating reverse hyperlinks. For further details see Using the Insert menu.
Method 4 - Use the Insert hyperlink window
Unlike the three previous methods which require you to visit the target node first to identify it before creating the hyperlink in the source4 article, this one allows you to navigate to the target node you desire without having to leave the current article. Let's create a link from node C to node B:
- Right-click in C's article where you wish to insert the hyperlink and select Insert⁄Edit hyperlink from the context menu to open the Insert hyperlink window.
- Make sure NODE is selected as the Link type, then click Find node... to open the Select tree node window. This displays a miniature tree, enabling you to navigate to the desired link target node, in this case node B. Click node B to select it.
- If you wish the link text (displayed link title) to have the same name as the target node, click OK all screens to create the link and return you to the article, else click OK to return you to the Insert hyperlink window where you can customize the name after clicking the Custom link text box. Click OK to finish.
This method takes a few more clicks than the others but gives you more options, and has to be used to create links to anything other than internal nodes, such as external files, Web sites, etc. For further details see Using the Insert⁄edit hyperlink window.
The Hyperlinks section of this manual contains additional methods for inserting hyperlinks, particularly multiple hyperlinks, as well as handy hints and tips.
Now let's brighten up the article by adding some images.
- There was also a hidden motive in asking you to do this! If an underlined hyperlink happens to be the only text in an article, ordinary text added afterwards sometimes also turns blue and underlined, for no good reason. This is a known issue. Therefore it is best to insert hyperlinks within existing text (even blank lines will do).
- Double-clicking is the default action for activating (following) hyperlinks.
- If you have set TreePad to activate hyperlinks by single-clicking, this will set it off, so right-click on it instead.
- The term source is often used as the opposite of target or destination and is probably derived from the origin of a river. The source article is the article containing the hyperlink, following which will take you to the destination node.