Blog

Navigation - Part 2

Posted: 03-Dec-2012
Category: Using PyroCMS

In Navigation Part 1, we looked at the most basic task -positioning a link for a page. In Part 2, we will look at the various options available when adding a link into the site's navigation menu. 

Links have a number of possible components. The most basic of these include just two elements: The Title, which is what you see and read, and the Location which specifies where to go on the internet to retrieve the information you request when the link is activated. By way of introduction the following illustration shows the screen presented when a navigation link has been selected in the Navigation module.

Select Navigation link

The PyroCMS Navigation module displays the attributes of the link in the right hand panel. In addition you may delete the link or edit it. 

When you add or edit a link, you need to be aware of the options available and take the correct course of action. That course will depend on what you wish to achieve. As noted elswhere, the Navigation module is very powerful and offers a variety of possible solutions to the arrangement of navigation menu links. Here we will look at the most common types:

  • Links to Pages
  • Links to Modules
  • Links to locations external to the website

In the following illustration, we have clicked on the Edit button to edit the About Us link which was automatically added to the Header Navigation Group in Managing Pages Part 1 and Navigation Part 1.

Edit Page Navigation link

As you can see, the Link Type in this instance is a Page and the About Us page is selected.  Here we introduce another attribute of a link, the Target. Target for this link is the Current Window. In a future tutorial on managing Links this attribute will be explained in more detail. For our purposes here, we wish to ensure that when the link is activated, the requested page (About Us) will be displayed in the current window of the browser. Both Restricted To and Class are beyond the scope of this tutorial as they are only used in special circumstances.

Other common options for Link Type are:

  • URL (a link to an external resource or page)
  • URI (a link to an internal resource, module or page - usually used in additional supplimentary Navigation Groups)
  • a Module which, in versions up to 2.1.x may include the site's Blog, Gallery or other custom developed functionality such as an e-commerce application)