The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

space description macro with Confluence 5.4.2

UWA Systems Support
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
November 11, 2015

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

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

1 vote
Sharon Hinde
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Champions.
November 11, 2015

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


0 votes
Paul Wray
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
November 15, 2015

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

0 votes
UWA Systems Support
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
November 12, 2015

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

 

 

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

TAGS
AUG Leaders

Atlassian Community Events