Difference between revisions of "Creating Required Joomla Menu Items"

From JReviews Documentation
Jump to: navigation, search
Line 35: Line 35:
 
*After you click on the menu type, you will need to choose a category from the dropdown.  
 
*After you click on the menu type, you will need to choose a category from the dropdown.  
 
*After you created all menu items, go to JReviews administration and  click on the "Clear Cache" link in the left menu. This is necessary because JReviews stores a cached version of the menu system to improve performance.
 
*After you created all menu items, go to JReviews administration and  click on the "Clear Cache" link in the left menu. This is necessary because JReviews stores a cached version of the menu system to improve performance.
 +
 +
=== Video Tutorial ===
 +
*[[City Guide Part 10 - Setting up SEF URLs and Creating Required Joomla  Menu Items|City Guide video tutorial Part 10 - Setting up SEF URLs and Creating Required Joomla  Menu Items]]
  
  

Revision as of 09:11, 28 October 2011

All listings and articles in Joomla should have a parent menu item, otherwise their URLs will have ugly "/component/content/article/" segment and it won't be possible to assign them modules.

JReviews uses Joomla's content system for listings and because of this each listing must have a Joomla Category menu item as parent, so if you already created JReviews Category List menu items, Joomla will not use them as parent menu items for listings.

Without a parent menu item, the listing url will look similar to this:


When you create a parent menu item, the "/component/content/article/" part will be replaced with the title alias of that menu item (i.e. /hotels/) and the listing detail page will show all modules that you assign to this parent menu item.

Since these Joomla Category menu items are required only for nicer listing SEF URLs and for module assignments, the menu items don't need to be visible on the site, that is why we create them inside a "Hidden Menu".


Creating Category menu items in Joomla 1.7

How to choose the best category menu item structure

Choosing a good menu item structure is important because the title aliases of those menu items will be used in urls of listings. It is possible that you have many categories, but you don't need to create menu items for all of them. A good approach is to create menu items only for all top level categories, or only for last level categories which contain actual listings.

Steps for creating the menu items

  • In the Joomla administration click on Menus => Menu Manager and to create a new menu click on New.
  • In the next screen enter the Title and Menu Type:

NewHiddenMenu17.png

  • Next, start creating menu items in the Hidden Menu
  • After you click on New and click on Select Menu Item Type, you will get this popup with the list of available menu item types, choose Category Blog or Category List:

NewJoomlaMenuItems17.png

  • After you click on the menu type, you will need to choose a category from the dropdown.
  • After you created all menu items, go to JReviews administration and click on the "Clear Cache" link in the left menu. This is necessary because JReviews stores a cached version of the menu system to improve performance.

Video Tutorial


Creating Section/Category menu items in Joomla 1.5

How to choose the best section/category menu item structure

Choosing a good menu item structure is important because the title aliases of those menu items will be used in urls of listings.

If you create Joomla Section menu items, the URLs will look like this:

If you create Joomla Category menu items, the URLs will look like this:

If you decide to create both Joomla Section and Category menu items, the URLs will look like this:

Steps for creating the section or category menu items

  • In the Joomla administration click on Menus => Menu Manager and to create a new menu click on New.
  • In the next screen enter the Name and Title of the menu, but leave the Module Title empty, so that the module won't be created:

NewHiddenMenu.png

  • Next, start creating menu items in the Hidden Menu

NewJoomlaMenuItems.png

  • Make sure you enter unique Title/Alias for each menu item, because duplicates will cause SEF issues
  • After you created all menu items, go to JReviews administration and click on the "Clear Cache" link in the left menu. This is necessary because JReviews stores a cached version of the menu system to improve performance.