3 month of free 24/7 email support for buyers.
Developer manual: Customizing site navigation
CafeEngine v2.3 has 3 site menues (see admin area->Site Navigation). If you need
more please follow the instruction:
- Find following lines in /include/options.php:
$options['menunames']['1']='main';
$options['menunames']['2']='left';
$options['menunames']['3']='bottom';
and add something like
$options['menunames']['X']='<internal_menu_name>';
Where X is a number larger than 3 and <internal_menu_name> should be a set of
alphanumeric characters. Please be careful because X in fact is a ID of menu
in DB.
- Find following lines in /admin/language/wording.php
$language['menuname_main']='Main Menu';
$language['menuname_left']='Left Menu';
$language['menuname_bottom']='Bottom Menu';
add line like
$language['menuname_<internal_menu_name>']='<Name of menu in admin area>';
- Now new menu would appear in admin area and you can build it there.
- To show it to site visitors you need to change template some template located
in /templates/<theme>/tpl. At the place where new menu would appear add
following code:
{foreach from=$site_menues.<internal_menu_name> item=mi}
{if !empty($mi.link)}
<a href="{$mi.link}">{$mi.title}</a>
{else}
{$mi.title}
{/if}
{/foreach}
It will show menu items you built in admin area only.
- Customize new menu look.
|