space description macro with Confluence 5.4.2

Hi there, 

we are in the process of upgrading Confluence 4.3.7 to 5.4.2 (and than latter on to 5.8.x).

After the upgrade we've noticed the Adaptavist Theme Builder plugin does not include this macro:

space-description

(space-descripton)

Includes the space description text

Please advice how can we include the above macro since this change is affecting us quite heavily.

Thank you.

Regards

Dean D. Babic

 

3 answers

This widget could not be displayed.

Hi,
we don't remember having a macro called space-description in any version of ThemeBuilder. There is a way to get the space description with the new panel-info macro in ThemeBuilder http://www.adaptavist.com/doco/display/tb/Panel+Info

I suspect you have many pages using a macro called 'space-description'. To make the macro work without changing all the pages you could add a user macro which calls the ThemeBuilder panel-info macro:

  1. In Confluence Administration > User Macros > Create a User Macro
  2. Add these details, leaving options as default if not specified
  • Macro Name = space-description
  • Macro Title = Space Description
  • Description = Shows the description for the current space
  • Categories = Confluence Content
  • Template =

## @noparams
$action.getHelper().renderConfluenceMacro("{panel-info:type=space.description}")


All the pages using the space-description macro should now show the information.

If you want to create a user macro that doesn't use the ThemeBuilder panel-info macro then use this code:

## @noparams
#set ( $spaceDescription = $space.getDescription() )
<p>$spaceDescription.getBodyAsString()</p>


Hope this helps
Sharon
 

Senior Webmaster | Adaptavist


This widget could not be displayed.

Hi Sharon, 

thank you for your reply and provided solution. The Adaptavist Theme Builder is ver. 4.4.1 with Confluence ver. 4.3.7

Kind Regards

Dean D. Babic

 

 

This widget could not be displayed.

Hi Sharon,

Just adding to my colleagues comments - when editing the 'Space Description' macro and you click on the documentation link, it attempts to take you to:

http://www.adaptavist.com/display/Builder/space-descripton+macro

which then redirects you to:

http://www.adaptavist.com/w/products-plugins/premium/themebuilder/

Hope this info is of value.

Regards

Paul

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted Sep 17, 2018 in Confluence

Why start from scratch? Introducing four new templates for Confluence Cloud

Hi my Community friends!  For those who don't know me, I'm a product marketer on the Confluence Cloud team - nice to meet you! For those of you who do, you know that I've been all up in your Co...

569 views 7 6
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you