4
I am using multimenu with horizontal menu bar on my
website.
This is how I made it work step by step:
Step 1.Open the file theme.html and add the following code at the top of this file:
<{php}>
if( ! empty( $_SESSION['redirect_message'] ) ) {
if( empty( $this->_tpl_vars['xoops_lblocks'] ) ) $this->_tpl_vars['xoops_lblocks'] = array() ;
array_unshift( $this->_tpl_vars['xoops_lblocks'] , array( 'title' => 'Message' , 'content' => $_SESSION['redirect_message'] , 'weight' => 0 ) ) ;
$this->_tpl_vars['xoops_showlblock'] = 1 ;
unset( $_SESSION['redirect_message'] ) ;
}
<{/php}>
Step 2.In theme.html add the following table where you want your horizontal menu to appear:
<table width="100%" height="20" border="0" cellpadding="0" cellspacing="0" class="navbar">
<tr>
<td>
<div align="left">
<{foreach item=block from=$xoops_lblocks}>
<{if $block.title == 'navbar'}>
<{$block.content}>
<{/if}>
<{/foreach}>
div>
td>
tr>
table>
You can add this table for example between the horizontal header and the 3 columns.
Step 3.Add the following to your style.css file:
.navbar {
border-collapse:collapse;
margin:0;
height: 20px;
padding: 0;}
Step 4.Upload theme.html and style.css to your server.
Delete all files from the folder template_c.
Step 5.Add block multiMenu 01 to the left column, visible on all frontside pages and make the title of the block 'navbar'.
Select 'CSS Drop down horizontal' from the menu Block Format.
Do not set the cache!
Submit the block and go to multiMenu 01 settings in Module Administration and add items to the menu bar.
Use Mainlink for the main button and Note for the sub-buttons of the menus.