Forums

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

Re-assigning decorators on the fly?

Matthew J. Horn
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.
May 2, 2012

This page shows that you can add the query string param "decorators" to a URL, and set it to "none":

http://forums.atlassian.com/thread.jspa?threadID=8576

Like this:

http://confluence.url/path/to/my.action?decorator=none

Does the "decorators" query string param take any other values? I've tried a few things, like names for other decorators, but could not find anything. Thanks!

matt

2 answers

1 accepted

1 vote
Answer accepted
Remo Siegwart
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.
May 2, 2012

The decorators are defined in the decorators.xml file in the source code of Confluence. Some interesting decorators are for example:

  • none
  • setup
  • main
  • sudo
  • admin
  • fixonly
  • printable
  • helppopup
  • popup
  • ...

Find more information about the Confluece UI architecture here: Confluence UI architecture

Hope this helps

Matthew J. Horn
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.
May 2, 2012

Awesome, thanks Remo.

0 votes
Tim
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.
March 9, 2014

It seems, that the decorator query string is no longer working for Confluence 5.4.3:

https://confluence.atlassian.com/display/DOC/Confluence+Documentation+Home?decorator=popup

Has the name changed? Has it been removed?

edit: From my testings: It stopped working with the release of Confluence 5.1.5.

edit2:

<mapper class="com.opensymphony.module.sitemesh.mapper.ParameterDecoratorMapper">
			<param name="decorator.parameter" value="decorator" />
			<!--
			<param name="parameter.name" value="printable" />
			<param name="parameter.value" value="true" />
			-->
		</mapper>

has been removed from /WEB-INF/sitemesh.xml in Confluence 5.1.5, you have to manually add it, in order to make it work in the current Confluence Release.

Before adding the ParameterDecoratorMapper again, be sure to read the XSS attack described here: https://jira.atlassian.com/browse/CONF-20865as this is the reason, why it has been removed.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events