-
Bug
-
Resolution: Obsolete
-
Low
-
5.4
-
Severity 3 - Minor
-
1
-
(originally from https://answers.atlassian.com/questions/152461/main-vmd-not-used-in-editor-when-crating-page-from-blueprint)
The issue is that customers can use custom themes with layouts like:
<layout key="main" name="Main Decorator" class="com.atlassian.confluence.themes.VelocityDecorator" overrides="/decorators/main.vmd"> <resource type="velocity" name="decorator" location="com/atlassian/confluence/themes/foo/main.vmd"/> </layout>
In the Confluence Create Content plugin (which implements Blueprints), to get the main decorator working we need a plugin decorator module:
<decorator name="Main Decorator" page="decorators/main.vmd" key="main"> <pattern>/plugins/createcontent/*</pattern> </decorator>
These two decorator configurations don't appear to be playing friendly - the vmd override file from the layout is not being used, so everything gets the default theme's decorators/main.vmd file.
One potential "fix" would be to drop the <decorator> module in favour of a Page decorator (see https://developer.atlassian.com/display/CONFDEV/Using+Standard+Page+Decorators), but this would require changes to all template files. It seems better to apply the correct decorator based on the URL pattern, as we are currently doing.
The fix would involve ensuring that the Sitemesh decorator selector is calling the ConfluenceSpaceDecoratorMapper (which uses the theme override) after the PluginDecoratorMapper (which uses the decorator module).
- is duplicated by
-
CONFSERVER-28808 Editor pages loaded via Blueprints don't get the correct main decorator applied when using custom themes
-
- Closed
-
- is related to
-
CONFSERVER-28808 Editor pages loaded via Blueprints don't get the correct main decorator applied when using custom themes
-
- Closed
-
Form Name |
---|
Thank you for your interest in this ticket. The Confluence Server and Data Center team released a major upgrade to the editor in 6.14. Due to the age of this ticket and/or lack of updates, we suspect that this issue is no longer relevant or was resolved as a result of the upgrade and are now closing this ticket.
If this issue is still a problem in your Confluence instance in version 6.15 or later, please tag me in your comment and we can reopen this ticket for review.
You can read more about the editor upgrade in the 6.14 Release Notes.
Thanks
Makisa Appleton | Senior Product Manager, Confluence Server and Data Center