[All Adaptavist Apps]

Page tree

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 3 Next »

Description

This macro inserts the contents of the edit menu as defined in theme config into a menu definition.

Usage

{editmenu}

Parameters

Property

Required

Default

Notes

showanon

(error)

true

If set to false the edit menu will not be output to anonymous users, a useful performance tweak for sites that are accessible to anonymous users who do not need edit privileges.

Examples

Basic Use

Use this macro in a menu definition to quickly insert the edit menu defined in theme configuration.

{menubar}
{editmenu}
{menubar}

Which results in:

Unknown macro: {menubar}
Unknown macro: {editmenu}

Note: Depending on your privileges on this site, you might not see the edit menu above - if you don't have access to any of the edit functions, the menu will not appear.

Hiding from anonymous users

In many cases the Builder theme is used to allow Confluence to deliver glossy websites where the majority of users will be anonymous consumers, i.e. they won't be editing content.

Because the items in the Edit menu have to do lots of permission checking, you can improve performance of your site by hiding the menu from anonymous users:

{menubar}
{editmenu:showanon=false}
{menubar}

You can easily add any of the menulinks (see menulink macro) to your menu bar should you require certain features to remain available (eg. adding comments, etc).

CSS Customisation

To follow.

Hints and Tips

None at present.

Frequently Asked Questions

None at present.

  • No labels