Reader small image

You're reading from  Joomla! 3 Beginner's Guide Second Edition

Product typeBook
Published inJul 2014
Reading LevelBeginner
Publisher
ISBN-139781783981502
Edition1st Edition
Languages
Tools
Concepts
Right arrow
Author (1)
Eric Tiggeler
Eric Tiggeler
author image
Eric Tiggeler

Eric Tiggeler has authored several books on Joomla!, such as the highly successful Joomla! 2.5 Beginner's Guide  and Joomla! 3 Beginner's Guide, both by Packt Publishing. He has also written several Joomla! guides in Dutch. His books have received excellent reader reviews. He also writes tutorials for several computer magazines and Joomla! community websites. Over the last ten years, he has developed numerous websites, big and small, using Joomla!. He is fascinated by the Web as a powerful, creative, and ever-changing means of communication, as well as by the revolutionary software Joomla!, which enables anybody to create beautiful and user-friendly websites. On a daily basis, he works as a consultant and copywriter at a communication consultancy company affiliated to the Free University of Amsterdam. Over the last few years, he has written more than 20 books in Dutch on writing and communication. His passion lies in making complex things easy to understand. He is married, has two daughters, and lives and works in Hilversum, the Netherlands. On the Web, you'll find him at www.joomla.erictiggeler.nl(in Dutch) and www.joomm.net(in English).
Read more about Eric Tiggeler

Right arrow

Chapter 8. Helping Your Visitors Find What They Want – Managing Menus

Menus and content in Joomla are closely intertwined. In the previous chapters, you saw that menu links don't just point to existing pages, as you might expect if you have experience building websites the old-fashioned way. When adding a menu link, you don't just tell Joomla what page the menu link should point to; rather, you instruct it to make that page. You saw how this works when you added content to your site. By adding menu links, you created category pages and other types of pages.

However, to your visitor, Joomla menus are no different from other website menus. To them, menus should provide an easy means of navigation. In this chapter, we'll concentrate on menus as a means to navigate. We'll focus on how you can make and tweak menus to design clear and intuitive navigation, and also on how you can help the visitors find what they want without difficulty.

Up to now, you've added menu links using mainly the default...

How many menus can you have?


On any Joomla website, you can create as many menus as you want. Every menu can contain one or more menu items; each menu item points to a page on the site. The default sample site that you installed in Chapter 2, Getting Joomla! Up and Running, is an example, as it contains no fewer than six menus. On the home page, four of them are shown: User Menu (only displayed after a registered user has logged in to the site), the horizontal Top menu, the About Joomla menu, and Main Menu (titled This Site). In the following screenshot, you can see how the frontend menus are reflected in the administrative interface:

The Australian Parks menu and the Fruit Shop menu have been added to the sample data for demonstration purposes; they're only used on the Parks and Fruit Shop example site pages.

At least one menu is needed for Joomla to function properly—the menu containing the link to the home page. By default, that's the menu called Main Menu. The other ones are only there...

Creating user-friendly navigation – cleaning up Main Menu


When building a site, you'll start by adding links to Main Menu. This menu is always part of the Joomla installation, even if you don't install sample data. But as your site evolves, it can become a long and cluttered list of hyperlinks. Even the menu of our small CORBA example site already contains too many links. When you find Main Menu getting long and messy, what options do you have to improve site navigation?

Option one – changing the order of menu items

By default, a new menu item is added to the end of the existing menu. Have a look at the following screenshot:

If you add a new link to any menu, it will always show up as the last item, as shown in the following screenshot:

This is probably not what you want. The order in which you add items isn't necessarily the order in which you want them to be displayed to your visitor. It's a good idea to rearrange links as soon as you've filled the menu with hyperlinks.

Tip

Deleting or unpublishing...

Time for action – changing the order of menu items


On the CORBA example site, let's move Main Menu items around to present them in a more logical order. The items that we want to get most attention should be in the top half of the menu; links to less important or static content should be placed down below. In the following screenshot, the original menu is shown:

A more logical order—from most important to less important—is shown in the following screenshot:

It takes just a few steps to adjust the order of menu items:

  1. Navigate to Menus | Main Menu.

  2. In the Ordering drop-down list above the menu items list, select Ordering ascending. Now click on the three vertical squares on the left-hand side of the menu item you want to move and drag-and-drop the menu item to its new position, as shown in the following screenshot:

Repeat the previous step until you're happy with the sequence of menu items.

What just happened?

The menu items now show up in the order that you've chosen. News and Activities have...

Time for action – creating a secondary menu item


To remove the News Archive link from the primary level in Main Menu and show it as a sublevel link, use the following steps:

  1. To edit the Main Menu content, navigate to Menus | Main Menu.

  2. Click on the title of the item you want to edit, News Archive.

  3. In the Details section, Parent Item is set to Menu Item Root. This indicates it's a top level link. Change Parent Item to News:

  4. Click on Save & Close. In the list of menu items in Menu Manager, the new sublevel menu item is shown indented, as shown in the following screenshot:

  5. To make sure the menu will display the sublinks intended, let's check a setting of the current menu module. Go to Extensions | Module Manager.

  6. In the Select Type drop-down list, select Menu. Click on the This Site menu module to edit it.

  7. On the Module options screen, check if End Level is set to All. This indicates that all submenu levels will be displayed. Leave Show Sub-menu Items set to No, unless you want to always display...

Time for action – create a new, empty menu


In Main Menu of the example site, three items are suitable to be shown in another menu. These links are of interest to visitors who want to know more about the CORBA organization. Let's create a new menu, About CORBA, so that we can move the menu links Who are CORBA?, Mission Statement, and Contact there.

  1. Navigate to Menus | Menu Manager. Click on New.

  2. In the Menu Manager: Add Menu screen, enter a title name in the Title field; this is the name that can be displayed with the menu. Fill the Menu type field too; this is the name that Joomla uses to identify the menu and it won't be visible on the frontend. When you enter a name, Joomla will save it without spaces or special characters. In the following example, we have entered About CORBA both as menu Title and Menu type. After clicking on Save, you'll notice the Menu type text has automatically changed to about-corba, as shown in the following screenshot:

  3. Description is optional although it can be...

Time for action – telling Joomla! where to display the menu


To actually get the new menu to show up on the site, you have to create a menu module. The module is the functionality block that contains your menu, and that's needed to be able to display menu contents. Let's tell Joomla where you want it to show the menu:

  1. Go to Menus | Menu Manager to see all menus. Locate the About CORBA menu. Click on the Add a module for this menu type link, found in Modules linked to the Menu column. (Actually this is a shortcut to Module Manager—it saves you a few clicks in navigating to Extensions | Module Manager, clicking on New, and then selecting Menu.)

  2. In the Module Manager: Module Menu screen, enter Title for the menu: About CORBA. Select Position: Right [position-7]. This will make the new menu appear in the same column as Main Menu.

  3. Click on Save and then on the View site. There you are! A separate menu appears. The new About CORBA menu is displayed in the right-hand side column:

  4. You're almost there...

Using the horizontal drop-down menu as the main menu


In Joomla 3.5, the horizontal top menu is in fact the most important site menu. Not only is it visually prominent, it's also the menu that will remain visible even if the website is shown on the small screen of a smartphone or tablet computer. Joomla's default template, Protostar, is set up to automatically adapt to such small screens. However, the content layout does change when the site is displayed on a smaller screen—you can try that out now by resizing the browser window:

As you can see, the top menu remains visible, but the right-hand side column (containing the This Site menu) has disappeared. In fact, the right column content is still there, but you need to scroll down all the way to the bottom of the screen to see it.

This means that in our current site (using the default site template), it would be better if we were to use the top menu as our default site menu. Right now, that's not the case, but it's easy to assign the contents...

Exploring menu module settings


While creating or editing a menu module, the module details and options allow you to control exactly where the menu is shown and how it displays. In many cases, the default settings will do—but if you really want control over your menus, it's a good idea to explore the wide range of additional possibilities. In the Module Manager, click on the menu name (such as This Site or About CORBA). The Module Manager: Module Menu screen appears as follows:

Switching to the menu module screen

You've just seen how you can edit menu properties by navigating to Extensions | Module Manager and finding the appropriate menu module. However, we've seen there's also a shortcut available that takes you straight from Menu Manager to the corresponding menu module settings:

In the Linked Modules column, click on the link to the menu module. Usually, there will be just one linked module available; however, if you use more instances of the same menu in different module positions, these...

Summary


In this chapter, we learned a lot about creating user-friendly navigation through Joomla menus. We learned that:

New menu links are added at the bottom of the list. To change menu item order, you move links up or down in the menu item manager.

Menus can be more than one level deep. By assigning a parent item to a menu link, you create a submenu item.

You can move links that don't fit the main menu to a separate menu. You can also create interrelated menus, such as a main menu showing parent links and a secondary menu that automatically shows child links.

Submenus aren't the only way to make secondary content visible. Main links can point to overview pages with (automatically generated) links to category content.

To create hyperlinks in an article to another article, use the Article button in the editor screen.

You've now finished making a basic, functional, and easy-to-navigate website. In the following chapters, we'll take things further—after all, dynamic, database-driven CMS magic doesn...

lock icon
The rest of the chapter is locked
You have been reading a chapter from
Joomla! 3 Beginner's Guide Second Edition
Published in: Jul 2014Publisher: ISBN-13: 9781783981502
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
undefined
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $15.99/month. Cancel anytime

Author (1)

author image
Eric Tiggeler

Eric Tiggeler has authored several books on Joomla!, such as the highly successful Joomla! 2.5 Beginner's Guide  and Joomla! 3 Beginner's Guide, both by Packt Publishing. He has also written several Joomla! guides in Dutch. His books have received excellent reader reviews. He also writes tutorials for several computer magazines and Joomla! community websites. Over the last ten years, he has developed numerous websites, big and small, using Joomla!. He is fascinated by the Web as a powerful, creative, and ever-changing means of communication, as well as by the revolutionary software Joomla!, which enables anybody to create beautiful and user-friendly websites. On a daily basis, he works as a consultant and copywriter at a communication consultancy company affiliated to the Free University of Amsterdam. Over the last few years, he has written more than 20 books in Dutch on writing and communication. His passion lies in making complex things easy to understand. He is married, has two daughters, and lives and works in Hilversum, the Netherlands. On the Web, you'll find him at www.joomla.erictiggeler.nl(in Dutch) and www.joomm.net(in English).
Read more about Eric Tiggeler