Skip to end of banner
Go to start of banner

How to deal with templates on Confluence 4.3 and later

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

Prior to Confluence 4.3, global and space templates were simple text with wiki markup. Now with Confluence 4.3 and later, templates are stored as xhtml. Unfortunately, this incompatibility cause difficulties for some macros that used simple text based templates to store simple text. This provided a convenient way to share scripts without using attachments or duplicating scripts.

Examples

  1. SQL Plugin for Confluence - users could put SQL scripts into global or page templates.  SQL-165 - Getting issue details... STATUS
  2. Script Plugin for Confluence - user could put Groovy, Beanshell, or Jython scripts into global or page templates.  SCRP-126 - Getting issue details... STATUS

To accommodate this problem, the handling of this data was changed to look for unformated text in the template. Consider any content that is wrapped in a noformat or wiki-markup (CWP:Wiki Plugin for Confluence) as the plain content from the template. All other data in the template will be ignored.

The incompatibility requires templates that are used for this capability to be updated to surround the text with the noformat or wiki-markup macros. Most standard usage does not employ this technique, however users do use this extensively. To ease migration pains, support has been added for releases previous to Confluence 4.3 to allow the accommodation as well. In this case the noformat macro must be the first and last text in the template.

  • No labels