Elxis CMS Forum

Extensions => Components => Topic started by: sophocles on November 02, 2010, 11:38:35

Title: IOS vertical menu problem CONT'D (SOLVED)
Post by: sophocles on November 02, 2010, 11:38:35
Hi,
The solution given to the overlap problem of the vertical menu,is nice and works fine if the menu is to be visible in all pages.

The e-shop I'm building is just a part of a bigger website and those making the choices, don't wish this menu to be visible on the front-page. In fact they want it only at the e-shop pages.
Yannis-K has given an excellent solution for an e-commerce only site, but this unfortunately is not viable for a mixed solution.

If you remove the menu from the first page (and all other), its position remains blank.

Any help / hint would be much appreciated.
Title: Re: IOS vertical menu problem CONT'D
Post by: datahell on November 02, 2010, 12:54:39
You should then change something on your template's HTML.

If you have something like this:

<div class="xxx">
<?php mosLoadModules('test', -2); ?>
</div>

Convert it to something like that:

<?php
if (mosCountModules('test') > 0) {
    echo '<div class="xxx">';
   mosLoadModules('test', -2);
   echo '</div>';
}
?>
Title: Re: IOS vertical menu problem CONT'D
Post by: sophocles on November 02, 2010, 13:03:01
Thanks