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

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


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

 

 

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
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Kesha Thillainayagam
Posted Friday in Confluence

We want to hear how your non-technical teams are using Confluence!

Hi Community! Kesha (kay-sha) from the Confluence marketing team here! Can you share stories with us on how your non-technical (think Marketing, Sales, HR, legal, etc.) teams are using Confluen...

299 views 11 10
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