NIH | National Cancer Institute | NCI Wiki  

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 4.0
Wiki Markup
{scrollbar:icons=false}

h1. Selectable Lists Created with Scaffolding Macros 
Scrollbar
iconsfalse

...

(Attachments, Content, Users)

...



This page explains how to generate lists as follows.

...



{note
Code Block
}The rendering has been removed because of a conflict with the Confluence 4.2 editor.
Table of Contents
minLevel2

More information

List of attachments

Refer to Attachments and Scaffolding Macros.

List of content by type of content: content-options macro

The content-options macro generates a list of Confluence content according to content type. One or more items on the list may be selected. This may be, for example, pages or blog posts. The option that was last selected appears on the page.

The general form is:

{note}

{toc:minLevel=2}

[More information|http://www.customware.net/repository/display/AtlassianPlugins/user-options]

h2. List of attachments

Refer to [Attachments and Scaffolding Macros].

h2. List of content by type of content: content-options macro

The content-options macro generates a list of Confluence content according to content type. One or more items on the list may be selected. This may be, for example, pages or blog posts. The option that was last selected appears on the page.

The general form is:
{code}{content-options:parent=[parent page]|ancestor=[ancestor page]|spaces=[space list]|branches=[all, parents, children]}{code}

An example follows. The complete markup includes macros are from the Reporting Plugin, not installed on this wiki.

...



{code
}{list-data:Children}
  {content-options:parent=@self}
    {text-sort:page:title|order=descending}
    {date-filter:page:modification date|minValue=-30d}
  {content-options}
{list-data}{code}

The text-sort and date-filter macros are from the Reporting plugin. Using them suppresses execution of the content-options macro; therefore they were omitted from the example to be shown on this page.

...



{code
}{list-data:Children}
  {content-options:parent=@self}
  {content-options}
{list-data}

...

}{code}

h2. List of users: user-options macro

...



The user-options macro generates a selectable list of users who match the Reporting plugin filters specified, if that plugin is installed. The default user selected is the user who authored the macro.

...



The general form is:

...


{code
}
{list-data:Users}
  {user-options:group=my-group|match=all}
    {text-sort:user:full name}
    {date-filter:signup date|minValue=-1y}
  {user-options}
{list-data}
{code}

The reporting plugin is not installed on this wiki.

...



{scrollbar

...

:icons

...

=false}