Loading...
 
Skip to main content

Features / Usability


Bullet Menu Items

Hi,

I have a simple custom menu defined with 8 static options. I would like to prefix each menu item with a bullet as in the style of mediawiki menu options.

However, I cannot find the code that displays the custom menu options from the database. Any ideas of where I could find it ?

Hope that's clear....

Many Thanks
GK

Rather than mess with the code that displays the menus, you could — probably should — use the CSS that styles menus. I assume this is a normal Tiki menu, a new menu with your links. If so, you could try editing the theme's stylesheet by adding something like this after the .linkmodule specification:

Copy to clipboard
/* Bulleted links in modules */ td.module .linkmodule { line-height: 1.5em; background-image: url(style_name/bullet.gif); background-position: 0 -2px; background-repeat: no-repeat; padding-left: 1.5em; font-size: 11px; }


Styling .linkmodule itself will put a bullet in front of every link in every module. Using "td.module .linkmodule" narrows the scope to "lists". You may have to play with the measurements. I happened to have a ))MediaWiki(( bullet on hand and attached it here in case you don't have one already 😉. The above code will produce the effect you want. If it doesn't do the job for your site, post again; the likely problem would be that your links have a different selector.

If the bullets are appearing in modules in addition to the one you want them in, further limit the scope by using "div.box-my_menu_box td.module .linkmodule" or "div.box-my_menu_box .linkmodule" as the selector, where box-my_menu_box is the specific class of your menu's module. (Check this name by looking at the source code of your completed page.

-- Gary - themes.tw.oQuestion