Creating links within your articles
You can include three types of links in your articles. Click any of the following for additional information (this information is also available in the html formatting tips window).
Anchor tags
External links
Internal links
You can include three types of links in your articles. Click any of the following for additional information (this information is also available in the html formatting tips window).
Anchor tags
External links
Internal links
Anchor tags
Anchor tags are links that jump to a different section on the same page or to a specified section of another page. The links above are examples of anchor tags. When clicked, they each take you to a specific location in this article.
To create anchor links, you need two tags:
- Hyperlink Reference: the link text Where 'the link text' is the hotlink that will jump to the anchor name when your visitor clicks the text. The pound sign tells the browser that this is a link to an anchor, not a different page.
- Name Tag: Put this tag at the desired location you wish to jump to. The name must match the hyperlink tag exactly, excluding the pound sign.
The anchor tag can also be used to go to a designated location on another page. The anchor tag would be placed on the page at the desired location. To link to that page and location the code would be: <a href="index.cfm/pageId/12#anchor_name">the link text</a> See below for more information about setting up Internal links. External links
You can include links to pages outside your site by surrounding the desired link text with the proper html tags. For example, if you want the phrase "Click here" in the sentence "Click here to see google," to send the viewer to google.com, write the text like this: <a href="http://www.google.com">Click here</a> to see google. Make sure you reference the entire URL including the http:// portion when creating offsite links. The tag can be slightly altered to open the link in a new window. To make the "Click here" in the sentence open google.com in a new window, simply write the sentence like this: <a href="http://www.google.com" target="_blank">Click here</a> to see google. Internal links
You can also include links to pages in your site's Page bank or to specific menu items. To link to a page, First, find the page ID number of the page you want to display when the viewer click the link. In the Page bank, there is a column indicating the page ID number of each page. If you want the phrase "Go here" to open the page with the page ID number of 7, create a link in the article with this code: <a href="index.cfm/pageId/7">Go here</a> TIP: Open the Page bank in a new window so you can view the page IDs while creating links in the article. There may be instances when you want to indicate a specific menu item to be highlighted when the page is displayed. For example, if you have a newsletter section, you can set a page to highlight the newsletter menu item without actually including it in the site navigation structure. You'll need to get the menu ID number of the desired menu. You can do so by going to the Menu editor window and passing your mouse over the menu item. The number will appear in the bottom left of your browser window. If you want the menu with the ID number of 1 to be highlighted when you follow the above link, just enter it as this: <a href="index.cfm/m/1/pageID/7">Go here.</a> TIP: Open the Menu editor in a new window so you can view the menu IDs while creating links in the article.