Customizing The Menu Structure For Nicer SEF URLs

From JReviews Documentation
Jump to: navigation, search

When you create JReviews (and other) menu items, the menu alias will be used for SEF URLs, for example:


Let’s say you want to have a folder structure in URLs. Then you would create the categories as child section menu items.

MenuStructure1.png


But what if you want to show only the category menu items and keep the folder structure in URLs?

The solution is to create a new menu where you would create menu aliases for menu items that you want to show on your site. For example, in the menu that you will show on your site create Alias menu items:

NewAliasMenuItem.png


In the Alias menu item parameters select the actual menu item that you want to link to:

NewAliasMenuItem2.png


The menu would look like this:

MenuStructure2.png


Now, when you show the new menu on the site, only the category menu item would be displayed, but the original URL would be used:


Therefore, the key is to have one menu that will contain menu items required for your custom structure and in other menus that will be displayed on the site, create menu aliases.


If you want another level for the category SEF URL, for example: http://example.com/reviews/products/pc-games, go to the menu that contains your structure and add additional menu item levels:

MenuStructure3.png


Those additional parent menu items don't need to be real menu items, you can use a Separator menu item type.