Primary and Secondary Links

Under the Global Settings heading are two fields, Primary Links and Secondary Links, which you can use to create a set of links that can then be displayed on your site. While this isn't the only way to create navigation links, it is a practical and quick way to get the job done. Primary and secondary links can be set only at the global level, not for individual themes.

A primary or secondary link consists of three pieces of information that you enter in the three columns of the table provided: Link Text, URL, and Description. The link text is the part of the link that is visible. The URL can be either an absolute URL (beginning with http://) or a Drupal path. Absolute URLs are used to link to other sites or resources on your server outside Drupal, whereas any resource inside Drupal (such as your blogs, forums, pages, or recent posts) are represented by a Drupal path. The description will be used for the title parameter of the resulting <a> tag, or hyperlink, which will be created. Here are some examples of primary and secondary links:

Link Text

URL (Type)

Description

Resulting HTML

Forums

forum (Drupal path)

Discussion forums

<a href="http://www.yoursite.com/ ?q=forum" title="Discussion forums"> Forums</a>

Recent posts

tracker (Drupal path)

The most recent posts

<a href="http://www.yoursite.com/ ?q=tracker" title="The most recent posts">Recent posts</a>

Yahoo!

http://www.yahoo.com (absolute)

A portal to everything

<a href="http://www.yahoo.com" title="A portal to everything"> Yahoo!</a>

0 0

Post a comment