J4.x

Adding a New Menu/es: Difference between revisions

From Joomla! Documentation

Created page with "Haz clic en el botón '''Agregar un módulo para este menú'''."
Created page with "border|800px"
Line 44: Line 44:
Haz clic en el botón '''Agregar un módulo para este menú'''.
Haz clic en el botón '''Agregar un módulo para este menú'''.


<div lang="en" dir="ltr" class="mw-content-ltr">
[[File:j4.x_menu_manager_add_module-es.png|border|800px]]
[[File:j4.x_menu_manager_add_module-en.png|border|800px]]
</div>


<div lang="en" dir="ltr" class="mw-content-ltr">
<div lang="en" dir="ltr" class="mw-content-ltr">

Revision as of 09:14, 24 February 2024

Joomla! 
4.x
Tutorial
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. La 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 recursos-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 y cerrar de la barra de herramientas para crear el nuevo menú. El botón Guardar y 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 y nuevo. Para salir sin guardar el menú, haz clic en el botón Cancelar de la barra de herramientas.

Si elegiste Guardar y cerrar, verás tu nuevo menú en la lista de Menús.

En este punto, podrías comenzar a agregar elementos a tu nuevo menú. Sin embargo, vamos a crear un módulo que mostrará tu menú y podemos hacerlo desde el Administrador de Menús.

Crear el Módulo para tu Menú

Haz clic en el botón Agregar un módulo para este menú.

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.