NIH | National Cancer Institute | NCI Wiki  

Error rendering macro 'rw-search'

null

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

Compare with Current View Page History

« Previous Version 9 Next »

Selectable List of Labels Created with the List-data and Label-options Macros

The label-options macro generates a selectable list of labels which may be applied to the current page. The selectable list appears in Edit view. Once selected, a label appears on the page unless the hidden-data macro is used.

The label may be removed in the label editing interface. However, selecting another label adds back the label originally selected. That is, selection of labels using this macro is cumulative. It is possible to edit the page in Edit Layout view (wiki markup) without adding back a label that has been deleted.

More information

An example follows.

{list-data:[Available Labels]}
{label-options:[labeloptiontest1, labeloptiontest2]}
{list-data}
Error formatting macro: list-data: java.lang.NullPointerException: Cannot invoke "com.atlassian.confluence.xhtml.api.XhtmlContent.convertStorageToView(String, com.atlassian.confluence.content.render.xhtml.ConversionContext)" because "this.xhtmlContent" is null