[All Adaptavist Apps]

Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

{builder-show} Macro

Description

The builder-show macro is

Excerpt

used to show content in specific contexts, modes and other filters

...

...

Expand
Display content based on existence of a page
Display content based on existence of a page

You can display content only if a specific page exists:

Code Block
{builder-show:page=My Page}
{include:My Page}
{builder-show}

In the example shown above, we only include the page if it exists. This hides the nasty error message that the include macro generates if that page does not exist. While it might seem a little strange to only show things if a specific page exists (especially considering you know the title of that page), it's extremely useful in scenarios where you are using templates and only want to show content or links if a specific page exists within the current space.

...

See Also