Agregar un nuevo menú
From Joomla! Documentation
Cómo Agregar un Nuevo Menú
Introducción
Para que el contenido pueda ser accedido en tu sitio web de Joomla!, los elementos necesitan ser asignados a un Menú. Una instalación estándar de Joomla! crea un Menú Principal para ti. En muchos casos usarás solo un menú, pero puedes tener más de uno. Esto te permite crear Menús para diferentes tipos de contenido, contenido oculto, contenido específico para roles de usuario y más.
En este tutorial, encontrarás una guía completa de los pasos involucrados en la creación de un Menú en un sitio Joomla!. Configuraremos un nuevo Menú, crearemos un Módulo de Menú, lo posicionaremos en una ubicación definida en la plantilla del sitio web y agregaremos Elementos de Menú a él.
Crear un Nuevo Menú
Abre una nueva ventana del navegador y escribe la URL, que será similar a http://www.nombre-tu-sitio-web-aqui.com/administrator o, si tienes Joomla! instalado en tu computadora local, http://localhost/nombre-tu-carpeta-local-aqui/administrator. Aquí tendrás que iniciar sesión como Administrador o Super Administrador.
Hay 2 formas de acceder al Administrador de Menús que se utiliza para agregar un Menú:
- Desde el Panel de Inicio, en el Menú Lateral haz clic en el icono del Panel de Menús para ir al Administrador de Menús, luego haz clic en Gestionar.
- O, desde el Panel de Inicio, en el Menú Lateral expande la sección de Menús y luego haz clic en Gestionar.
Cuando se abre el Administrador de Menús, mostrará los menús actuales y una barra de herramientas superior con un botón + Nuevo. Haz clic en el botón + Nuevo.
Ahora se requieren un Título' y un Nombre Único. Una Descripción es opcional:
Título: Un título adecuado para el menú. Esto se usa para identificar el menú en el Administrador de Menús.
Nombre Único: Este debe ser un nombre de identificación único utilizado por Joomla! para identificar este menú. No se permiten espacios, pero puedes usar el carácter '-' como por ejemplo resources-menu.
Descripción: Aunque no es obligatorio, una descripción del menú puede ser útil para tu propia referencia o la de otros Administradores del Sitio.
Haz clic en el botón Guardar o en el botón Guardar & Cerrar de la barra de herramientas para crear el nuevo menú. El botón Guardar & Cerrar te devolverá al Administrador de Menús. Si estabas creando más de un menú, también tienes la opción de hacer clic en Guardar & Nuevo. Para salir sin guardar el menú, haz clic en el botón Cancelar de la barra de herramientas.
If you chose Save & Close, you will see your new menu in the list of Menus.
At this point you would be able to start adding items to your new menu. However we are going to create a module that will display your menu and we can do that from within the Menu Manager.
Create the Module for Your Menu
Click the Add a module for this menu button.
A Menu Module will open ready for input of the necessary information. Here are a few of the most basic points regarding the Menu Module:
The Title field is required, so create a descriptive title. If you want this title displayed on the front of the website, click on the "Show Title" button on the right.
Notice the Select Menu field. This should show the name of the Menu you just created.
You need to select a Position in your template for where you want your menu to appear. Note: getting it to look the way you want it to depends on your template styling. Select the postion you require.
There are many options to choose from in the Menu Module such as publishing dates, user access, and sub-menu items just to name a few. For detailed information about the Menu Module and all it's parameters see: Module Menu.
Once the information has been added click Save & Close and you will be returned to the Menu Manager.
Add Items To Your Menu
To create the links in your menu you need to add Menu Items. There are many kinds of Menu Item Types in Joomla. Some are included in the core installation and many third-party components may add more types also. For this tutorial we will add links to single articles.
The Menu Manager list will now include the new Menu. In the Menu Items column, click the icon.
To begin with, this will present an empty list. Click on the New button in the Toolbar.
The Menus: New Item panel will open. We will add a single article to the Menu:
- In the Title field add the title you want to appear in the Menu.
- In the Menu Item Type field click the Select button then Single Article then Single Article.
- In the Select Article field click the Select button which will open a list of your articles. Select your article.
- Check the Menu field is set to the new Menu.
- The Status field should be set to Published.
- Click Save & Close.
Add more Menu Items to the new Menu.
Once items have been added to the Menu we can check to see that the Menu is displayed on the website in the correct position.
To recap, we have created a new Menu, then a Menu Module to display the Menu on the website and finally we have added some single article links to the new Menu. Checking the website we can see the Menu is displayed in the position we chose and it displays the single article links added to the menu.