The Adaptavist Group LogoDocumentation

Random Excerpt

This macro includes the excerpt of a random child page to a specified parent.

HTML Code: random-excerpt

See the Confluence Excerpt macro for how to set an excerpt on pages you want to be included in the Random Excerpt macro's output.

Usage

Storage Format

<ac:macro ac:name="random-excerpt">
<ac:parameter ac:name="parameter">value</ac:parameter>
</ac:macro>

Wiki Markup

{random-excerpt:parameter=value}
Parameter Name Description Type Default Required
parentParent PageThe page whose children an excerpt should be randomly chosen fromconfluence-content
titleShow Page TitleShow the page title (default - true)true
linkLinkAdd a more link to the page whose excerpt is being displayed (default - true)booleantrue
moreMore LabelThe label to use for the link to the page (default - More …​)stringmore
labelLabelsComma-separated list of labels which the content must have at least one for it to be shownstring
classCSS classThe CSS classname to add to the outer divstring
countCountThe number of excerpts to be shown (default 1)string1
hideHideWhether to hide the extra excerpts or not (default false)booleanfalse
flagFlagA list of flags, one of that must be defined for the content to be displayedstring
notflagNot FlagA list of flags that must not be defined for the content to be displayedstring

Example

Show a random excerpt from the child pages of the page.

<ac:macro ac:name="random-excerpt"><ac:parameter ac:name="parameter">value</ac:parameter>
</ac:macro>
{random-excerpt:parameter=value}

Result

Shows a random page excerpt with a link through to the page.

Search documentation

Start typing to search the docs.