Access Keys:
Skip to content (Access Key - 0)
Home (Access Key - 1)
All spaces... (Access Key - 3)
Log in (Access Key - 5)
Sign up (Access Key - 6)
Toggle Sidebar

editmenu macro

(None)

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
hideanon false If set to true 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:

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:hideanon=true}
{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.

Toggle Sidebar

See Also

Incoming Links


Outgoing Links


Added by Alain Moran on Oct 09, 2006 23:32, last edited by Guy Fraser on Jul 07, 2008 04:47

Adaptavist Theme Builder Powered by Atlassian Confluence