BlackCatDevelopment / BlackCatCMS

BlackCat CMS is a PHP5, HTML5 content management system
https://blackcat-cms.org
Other
11 stars 9 forks source link

Main menu not showing in frontend #177

Closed digitalbricks closed 11 years ago

digitalbricks commented 11 years ago

While testing the RC1 i noticed that the main menu is not showing on the frontend. The sidebar on the left side is empty – in the alpha version there was the main menu. Note: I made a clean install with the version provided on your site. I also used a new database, so the issues i reported (including this one) won't correlate with the previous alpha testing.

bildschirmfoto 2013-10-03 um 20 34 42

webbird commented 11 years ago

No problem here. Can anyone confirm this?

creativecat commented 11 years ago

It might happen, if there are to many navigation items. I were sure, that I already added a clearer-Div to avoid this. Try adding a

<div class="clear"></div>

right after the header-Tag...

webbird commented 11 years ago

Checked this with a fresh install just now, the menu is showing up correctly.

digitalbricks commented 11 years ago

I just did a fresh install with the package provided on your site, same problem as before: Menu not showing in frontend. I will try this on another machine later but it is curious because there is no PHP error or something that points me to the reason for this issue.

webbird commented 11 years ago

Seems to me that your PHP version is the problem. Which version do you use?

webbird commented 11 years ago

Now I can reproduce this problem.

webbird commented 11 years ago

Found it. As long as the system is in maintenance mode, no menu is shown.

if ( CAT_Helper_Page::isMaintenance() ) return false;

webbird commented 11 years ago

Changed that line to

if ( CAT_Helper_Page::isMaintenance() && ! CAT_Users::is_root()) return false;

digitalbricks commented 11 years ago

It works! You can close this ticket. Thanks for your great work!