Joomla! 1.5: Creating Menu Items for Components

Tom Canavan

November 2010


Joomla! 1.5 Cookbook

Joomla! 1.5 Cookbook Over 60 quick and direct recipes to help you overcome common Joomla! queries.
  • Find quick solutions to common Joomla! problems
  • Part of Packt's Cookbook series: Each recipe is a carefully organized sequence of instructions to complete the task as efficiently as possible
  • Look at recipes that cover the portions of Joomla! 1.6 that are brand new
  • Over 60 practical recipes covering a range of site management and core Joomla! activities
        Read more about this book      

(For more resources on Joomla!, see here.)

Carrying on with our Agora example, let's create a menu for Agora so our WidgetWorld Users can post threads on the products.

How to do it...

  1. Log in to your Administrator Console.
  2. Click Menus and choose the menu you wish - in this case, use Main Menu - thus Menus | Main Menu.
  3. Click New in the upper right-hand corner.

    The above screenshot is a snippet of the Select Menu Item Type - Yours will vary.

    In this example, we see several items - we want Agora Forum.

  4. Click Agora Forum.
  5. Scroll down and fill out the details as you see here (use your own details):

    This will give the forum menu on the home page a title called WidgetWorld FORUM.

  6. Click Save.

    Now when we visit this from the front of the site we see the completed WidgetWorld FORUM on our menu:

How it works...

The creation and location for the component is stored in the database. When the Joomla! template renders the page, it will include the component.

Thus - when you create a menu item for the component you are giving the user the ability to 'use' the component.

There's more...

As you gain more experience with Joomla!, you'll want to work with the menu to give it a more custom feel. Let's look at changing the location of menus.

Changing the location of the menu

You likely noted that the forum in the last example was at the bottom of the Main Menu. Let's change the order.

  1. Click Menu | Main Menu - see the Order column.

    This is the order of display.

  2. Type 2 in the Order number box for the WidgetWorld FORUM.
  3. Click the Floppy disk <save> icon next to Order - the result should be as you see in the following screenshot:

    Here are the menus before and after side-by-side:


Having covered menu items for components, in the next article we will cover Installing, Creating, and Managing Modules.

Further resources on this subject:

You've been reading an excerpt of:

Joomla! 1.5 Cookbook

Explore Title