[All Adaptavist Apps]

Page tree

Versions Compared

Key

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

...

A decorator is template that is applied to content. Confluence passes a decoratror decorator to Theme Builder. You can use this decorator to display content using the {builder-show} or the {{builder-hide} macros.

How to show content in spaces.

...

Pages that use the global decorator include, Dashboard, RSS Feed Builder and People Directory. The Popular Lables Labels page, however uses its own decorator, labels. Search Site also uses it own, search.
So to applly apply content to Dashboard, RSS Feed Builder, People Directory, Popular Lables Labels and Search Site. We would do the following:

...

Some pages that you may think would have global their docorator infact decorator in fact have a null value instead namely Login, Sign Up For Confluence and Create Space.
Pages associated with user profiles such as User Profile, Edit My Profile, Personal Labels, Watches and Drafts use the profile decorator. Its worth noting however that a personal space will use the same decorators as a normail normal space.

Switching layout based on decorator.

You can use {use-layout} macro with an builder-show macro to switch layouts based on decorator.

Example switching to a different layout based on decorator.

No Format
{builder-show:decorator=printable}{use-layout:LAYOUTID}{builder-show}

...

These are some of the current decorators.

Decorator

main

mail

page

space

blogpost

printable

footer

global

labels

profile

search

...