Admin menu and simple menu - how to use?

62 views
Skip to first unread message

Amiramix

unread,
Aug 31, 2012, 3:57:07 PM8/31/12
to zotoni...@googlegroups.com
There is mod_menu that supposed to attach a simple menu to a site, and there is the admin menu shown when opening the admin section of a site. As far as I can see in the code the admin menu isn't created with mod_menu. The skeleton blog site supposed to show a menu generated with mod_menu but, at least for me, it just shows a bullet list of options at the top of the page, not a proper menu like the one in the admin section.

1. Am I right thinking that the menu in admin section isn't generated by mod_menu?
2. Does the menu generated with mod_menu supposed to look like the menu in admin section but it doesn't because of an error, or they look differently by design?
3. Can I style the menu generated with mod_menu to look like the menu in the admin section (since I like its look & feel) or I would be better off by implementing a menu in the code in a similar way like the menu in the admin section?

Andreas Stenius

unread,
Sep 1, 2012, 7:43:09 AM9/1/12
to zotoni...@googlegroups.com
mod_menu gives you a menu editor in the admin, and a menu scomp you
can use from your templates.

The scomp renders the menu to html, which you then can style as you
like using css.

Here's from the menu scomp source:

% Menu structure is a like:
%
% <ul id="navigation" class="at-menu">
% <li id="nav-item-1" class="first">
% <a href="" class="home-page current">home</a>
% </li>
% <li id="nav-item-2">
% <a href="" class="about-page">about</a>
% </li>
% <li id="nav-item-3" class="last">
% <a href="" class="contact-page">contact</a>
% </li>
% </ul>

The docs are slightly out of date, but give properly hints on usage,
nonetheless: http://zotonic.com/scomp-menu

//Andreas

2012/8/31 Amiramix <li...@gjunka.com>:

Amiramix

unread,
Sep 1, 2012, 9:44:09 AM9/1/12
to zotoni...@googlegroups.com
Thanks, very helpful!

Amiramix

unread,
Sep 1, 2012, 10:50:43 AM9/1/12
to zotoni...@googlegroups.com
Aha! Now I know why the menu looks like it's broken in the skeleton blog site - CSS was missing because the Bootstrap framework module isn't enabled by default!
Reply all
Reply to author
Forward
0 new messages