[All Adaptavist Apps]

Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Wiki Markup
{builder-show:title=Links - Quick Reference}{excerpt}This page provides a 

...

quick-reference guide to the parameters and features of the [menulink macro] and [compound-menuitem macro] (click for more information when/where to use each macro).{excerpt}{builder-show}

(!)

...

Parameters

Parameter

Description

menulink

compound-menuitem

accesskey

Assign a shortcut key to the link.

(tick)

(tick)

checkexists

whether userspace menulink should check to see if the user has a personal space (default false)

(question)

(tick)

class

the css class to be applied to the link

(tick)

(tick)

force

force the comments or children link to be displayed when there are no comments or children to the page (default false)

(error)

(tick)

forceicon

force the icon to be displayed irrespective of the layout (default false)

(error)

(tick)

icon

the icon to use

(error)

(tick)

imginside

should the icon appear inside the link (default=false)

(error)

(tick)

latch

whether use-layout should latch the layout (used with use-layout menulink)

(tick)

(tick)

layout

the layoutId to (used with use-layout menulink)

(tick)

(tick)

link

the custom link (used by 'custom' menulink - deprecated, use URL aliases instead)

(tick)

(tick)

page

the title of the page whose context the link generation should be calculated against

(tick)

(tick)

parent

used by the exportMail link type to define the parent where the page generated from the mail shuld be created

(tick)

(tick)

size

the size of the icon to use

(error)

(tick)

space

the spacekey whose context the link generation should be calculated against

(tick)

(tick)

target

the target for the link (eg _blank)

(tick)

(tick)

title

Page title to (used with "newpage" destination)

(tick)

(tick)

toggle

the html ID of the element whose visibility is to be toggled (used by toggleVisibility)

(tick)

(tick)

tooltip

the tooltip that should be displayed by the link

(tick)

(tick)

location

the webui location to use with webui links

(tick)

(tick)

key

the webui key to use with webui links

(tick)

(tick)

Destinations

Destination

Description

advanced

go to advanced config page

children

show/hide children toggle

comments

show/hide comments toggle

configuretheme

configure the theme

copy

copy the current page

dashboard

go to dashboard

edit

edit the current page

exportMail

export email to page

exportPDF

export page to pdf

exportWord

export page to word doc

favourite

add page to favourites

favouritespace

add space to favourites

globaltemplates

display list of global templates

history

show account history

home

go to space home page

index

go to space index

information

show page information

labels

show labels heatmap

login

go to login screen

logout

log out

mail

show space email

map

go to space map

newcomment

add a comment

newnews

create a new blogpost

newpage

create a new page

newspace

create a new space

news

view space news

normalView

view page as normal

pageattachments

show page attachments

viewattachments

show page attachments without checking attachment permission

printableView

view page as printable

profile

show user profile

recent

view recently updated in space

remove

delete the current page

RSS

go to rss feed editor

search

links to the search screen

signup

create a new account

siteadmin

go to site administration

spaceadmin

go to space administration

colourscheme

go to colour scheme selector

spaceattachments

display space attachments

spacetemplates

display list of space templates

userspace

show user's space

watch

watch current page/space

watchspace

watch current space

custom

define a custom link

toggleVisibility

toggle the visibility of an html element

people

show the people directory

activity

show site/space activity

webui

show a webui link, requires location & key parameters

use-layout

change the layout

wikipage

link to the page specified by the page & space parameters

next

the next sibling page

prev

the previous sibling page

first

the first sibling page

last

the last sibling page

parent

the current page's parent

firstchild

the first child page

lastchild

the last child page

notationguide

link to the macro notation guide

managelayouts

link to manage layouts

pageView

view the current page in normal mode

viewSource

view the wiki markup source of the current page

editinword

edit the current page using MS-Word (requires the office connector plugin)

Built-in Aliases

The following aliases are automatically defined in Theme Builder 3.3 and above. For more information on editing aliases and defining your own, please see Menulink Aliases Tab.

...

Alias

...

Destination

...

Plugin

...

pagewatcher

...

system.page:pagewatcher

...

newswatcher

...

system.news:newswatcher

...

pagefavourites

...

system.page:pagefavourites

...

newsfavourites

...

system.news:newsfavourites

...

emailpage

...

system.page.operations:mail-page

...

addgliffydiagram

 This page is still under construction - some parameters and destinations are not yet listed

h2. Parameters

The *Ver* column denotes the minimum version of Theme Builder that is required.

The following parameters are available in both the [menulink macro] and [compound-menuitem macro]:

|| Parameter || Required || Default || Description || Ver ||
|| _default_ |(/)| | Defines the type of link to output (see [#Destinations] and [#Aliases] below).| 2.0 |
|| accesskey |(x)| | Assign a [access key|http://en.wikipedia.org/wiki/Access_keys] (alpha or numeric keyboard shortcut) to the link. {footnote}When using links inside menus, you can also prefix a letter in the link text with an "_" to define the access key - this letter will then be underlined when displayed in the menu. Access keys only work when the associated item is visible on screen.{footnote} | |
|| checkexists |(x)|{{false}}| Determines how the "userspace" destination will work:
* *{{false}}* -- link to personal space if it exists, otherwise link to user profile
* {{true}} -- only output a link if the personal space exists | |
|| class |(x)| | Adds one or more classes to the link, for use with [CSS Selectors|http://www.w3schools.com/Css/css_syntax.asp]. | |
|| force |(x)|{{false}}| Determines how the "comments" or "children" destinations function:
* *{{false}} -- only output the link if the are comments or children (as applicable)
* {{true}} -- always output the link, even if there are no comments or children (as applicable) | |
|| key | When used with the "webui" destination, this defines the link _key_. {div:class=smalltext}Deprecated -- use [#Aliases] instead.{div} | 2.0.8 |
|| latch |(x)|{{false}}| Determines the effect of the "use-layout" destination:
* *{{false}}* --  use the layout for the next page view only, then revert to the normal layout
* {{true}} -- use the layout for all pages viewed for remainder of the session | 3.0 |
|| layout |(x)| | When using the "use-layout" destination, defines the ID of the layout to use. | 3.0 |
|| link |(x)| | When using the "custom" destination, defines the URL to use for the link. {div:class=smalltext}Tip: Centrally define and manage custom links via the [Menulinks Aliases Tab]{div} | |
|| location |(x)| | When used with the "webui" destination, this defines the link _location_. {div:class=smalltext}Deprecated -- use [#Aliases] instead.{div} | 2.0.8 |
|| page |(x)|_current page_| For [#Destinations] that would normally apply to the current page, you can use this parameter to specify a different page by it's page title. | {footnote}For Confluence 2.5 and above, use Theme Builder 2.0.7 or later to ensure this parameter works correctly.{footnote} |
|| parent |(x)|_space home page_| Defines the parent that the "exportMail" destination will use when exporting mail archive messages to wiki pages. | |
|| space |(x)|_current space_| For [#Destinations] that would normally apply to the current space, or a page in that space, you can use this parameter to specify a different space by it's space key. | |
|| target |(x)|{{\_self}}| Defines the [link target|http://www.w3schools.com/tags/att_a_target.asp], eg. {{\_blank}} to open the link in a new window. | 2.0.9 |
|| title | Page title to (used with "newpage" destination) | |
|| toggle |(x)| | Defines the ID of the HTML element to toggle when using the "toggleVisibility" destination. | 3.0 |
|| tooltip |(x)| | Defines the tooltip that will be displayed when hovering over the link.{footnote}When using the link in a menu, tooltips will only be shown if enabled in theme configuration. In all other formats, the tooltip will always be shown when the mouse hovers over the link.{footnote} | |

{display-footnotes}
{builder-hide:title=menulink macro}
The following parameters are only available in the [compound-menuitem macro]:

|| Parameter || Required || Default || Description || Ver ||
|| forceicon | | | force the icon to be displayed irrespective of the layout (default false)| |
|| icon | | | the icon to use| |
|| imginside | | | should the icon appear inside the link (default=false)| |
|| size |(x)|{{16}}| The size of the icon (if applicable) | |
{builder-hide}

h2. Destinations

|| Destination || Description ||
| advanced | go to advanced config page |
| children | show/hide children toggle |
| comments | show/hide comments toggle |
| configuretheme | configure the theme |
| copy | copy the current page |
| dashboard | go to dashboard |
| edit | edit the current page |
| exportMail | export email to page |
| exportPDF | export page to pdf |
| exportWord | export page to word doc |
| favourite | add page to favourites |
| favouritespace | add space to favourites |
| globaltemplates | display list of global templates |
| history | show account history |
| home | go to space home page |
| index | go to space index |
| information | show page information |
| labels | show labels heatmap |
| login | go to login screen |
| logout | log out |
| mail | show space email |
| map | go to space map |
| newcomment | add a comment |
| newnews | create a new blogpost |
| newpage | create a new page |
| newspace | create a new space |
| news | view space news |
| normalView | view page as normal |
| pageattachments | show page attachments |
| viewattachments | show page attachments without checking attachment permission |
| printableView | view page as printable |
| profile | show user profile |
| recent | view recently updated in space |
| remove | delete the current page |
| RSS | go to rss feed editor |
| search | links to the search screen |
| signup | create a new account |
| siteadmin | go to site administration |
| spaceadmin | go to space administration |
| colourscheme | go to colour scheme selector |
| spaceattachments | display space attachments |
| spacetemplates | display list of space templates |
| userspace | show user's space |
| watch | watch current page/space |
| watchspace | watch current space |
| custom | define a custom link |
| toggleVisibility | toggle the visibility of an html element |
| people | show the people directory |
| activity | show site/space activity |
| webui | show a webui link, requires location & key parameters |
| use-layout | change the layout |
| wikipage | link to the page specified by the page & space parameters |
| next | the next sibling page |
| prev | the previous sibling page |
| first | the first sibling page |
| last | the last sibling page |
| parent | the current page's parent |
| firstchild | the first child page |
| lastchild | the last child page |
| notationguide | link to the macro notation guide |
| managelayouts | link to manage layouts |
| pageView | view the current page in normal mode |
| viewSource | view the wiki markup source of the current page |
| editinword | edit the current page using MS-Word (requires the office connector plugin)|

h2. Aliases

(i) This feature requires Theme Builder 3.3 or above.

You can create any number of custom destinations via the [Menulink Aliases Tab]. Once defined, the alias can be used in the _default_ parameter of the [menulink macro] and [compound-menuitem macro] just like any of the [#Destinations] listed above.

A number of pre-defined aliases are available for linking to features in popular third-party plugins:

|| Alias || Destination || Plugin ||
| pagewatcher | system.page:pagewatcher |
| newswatcher | system.news:newswatcher |
| pagefavourites | system.page:pagefavourites |
| newsfavourites | system.news:newsfavourites |
| emailpage | system.page.operations:mail-page |
| addgliffydiagram | system.space.actions:gliffy_system_space_add_diagram_action

...

admingliffy

 |
| admingliffy | system.admin/administration:gliffyshowadminwebitem

...

podcastpage

 |
| podcastpage | system.page:podcast-episode-page-webui

...

podcastnews

 |
| podcastnews | system.news:podcast-episode-blogpost-webui

...

podcastchannels

 |
| podcastchannels | system.space:space-podcast-channel-webui

...

customusermanagement

 |
| customusermanagement | system.space:space-custom-usermanagement

...

editgridaddbook

 |
| editgridaddbook | system.space.action:editgrid-space-add-book

...

inviteothersadmin

 |
| inviteothersadmin | system.space.admin/security:admin.invitelink

...

invitelistadmin

 |
| invitelistadmin | system.space.admin/security:admin.invitelistlink

...

inviteothers

 |
| inviteothers | system.space.advanced/advanced:advanced.invitelink

...

invitelist

 |
| invitelist | system.space.advanced/advanced:advanced.invitelink

...

invite

 |
| invite | system.space.actions:space.invitelink

...

review

 |
| review | system.page:review

...

reviewreport

 |
| reviewreport | system.space:space-markforreview-report

...

reviewspaceconfig

 |
| reviewspaceconfig | system.space.admin/security:configure-markforreview-space

...

reviewglobalconfig

 |
| reviewglobalconfig | system.space.admin/security:configure-markforreview-global

...

 |
| space-socialbookmarks

...

 | system.space:space-socialbookmarks

...

addbookmark

 |
| addbookmark | system.space.actions:addbookmark

...

 |
| config-approvals

...

 | system.admin:approvalsWorkflowConfig

...

 |
| manage-approvals

...

 | system.space.admin:editspaceapprovals

...

 |
| space-approvals

...

 | system.space:space-approvals

...

 |
| page-approvals

...

 | system.page:page-approvals

...

 |
| released-approvals

...

 | system.page:released |

When you first use any of the aliases listed above, an entry will automatically be added to the list of aliases on the [Menulink Aliases Tab].