[All Adaptavist Apps]

Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 5.3

Excerpt

This tutorial explains how to add icons to your menus in Theme Builder

...

2.x...

...

If you've

...

seen

...

our

...

company

...

website

...

,

...

you

...

will

...

notice

...

that

...

most

...

items

...

menus

...

have

...

an

...

icon.

...

The

...

icons

...

help

...

to

...

make

...

items

...

more

...

recognisable,

...

especially

...

for

...

regular

...

visitors.

...

...

...

...

...

...

...

...

The notation to get icons in pop-up menus and sub-menus is almost identical, however the image must be outside the link. You can compare the differences between icons on the menu bar (the {menu} lines) and those on pop-up menus / sub-menus (the {menuitem} lines):

No Format
{noformat}

Which results in:

{menubar}
 {menuitem}{menulink:home}{menuicon:house} Home{menulink}{menuitem}
 {menuitem}[!http://adaptavist.com/glyphs/cubes.png! Builder|Builder|Stuff about Builder...]{menuitem}
{menubar}

As you can see from the notation above, you can either use wiki notation to add the images (see [Images, Flash, Videos and Audio] for more information) or the handy [Builder:menuicon macro] which provides numerous ready-made icons.

h2. Icons in Pop-up Menus and Sub-Menus

The notation to get icons in pop-up menus and sub-menus is almost identical, however the image must be _outside_ the link. You can compare the differences between icons on the menu bar (the \{menu} lines) and those on pop-up menus / sub-menus (the \{menuitem} lines):

{noformat}
{menubar}
 {menu}{menulink:home}{menuicon:house} Home{menulink}
  {menuitem}{menuicon:house} {menulink:home}Home{menulink}{menuitem}
 {menu}
 {menu}[!http://adaptavist.com/glyphs/cubes.png! Builder|Builder|Stuff about Builder...]
  {menuitem}!http://adaptavist.com/glyphs/cubes.png! [Builder|Builder|Stuff about Builder...]{menuitem}
 {menu}
{menubar}
{noformat}

And this is what it will look like in the menu bar:

{menubar}
 {menu}{menulink:home}{menuicon:house} Home{menulink}
  {menuitem}{menuicon:house} {menulink:home}Home{menulink}{menuitem}
 {menu}
 {menu}[!http://adaptavist.com/glyphs/cubes.png! Builder|Builder|Stuff about Builder...]
  {menuitem}!http://adaptavist.com/glyphs/cubes.png! [Builder|Builder|Stuff about Builder...]{menuitem}
 {menu}
{menubar}