How do I change space layouts in custom themes?
目的
Many custom themes do not support configuring a custom layout via the user interface. The guide below is an example to change the layout in the Documentation theme. The aim is to remove the children displayed at the bottom of the page.
ソリューション
- Unzip the
<confluence-install>/confluence/WEB-INF/classes/com/atlassian/confluence/setup/atlassian-bundled-plugins.zip
(for Confluence 4.3.x and earlier) or go to<confluence-install>/confluence/WEB-INF/atlassian-bundled-plugins
(for Confluence 5.x and above) - Unjar the
doctheme-X.X.X.X.jar
in the unzippedatlassian-bundled-plugins.zip
. - Once unjarred, edit the
/doctheme/decorators/page.vmd
. Comment the following line in the file:
##renderChildren()
- ファイルを保存します。
- Jar the file back to
doctheme-X.X.X.X.jar
. - Zip the
atlassian-bundled-plugins.zip
back (for Confluence 4.3.x and earlier only) - Restart your Confluence. Your changes would be reflected after this.
If you need a guide to help with the editing files within JAR archives, you can refer to this documentation. However, please keep in mind that the Documentation Theme plugin is part of bundled plugins. Hence, it is stored in a special place, which is located at <confluence-install>/confluence/WEB-INF/classes/com/atlassian/confluence/setup/atlassian-bundled-plugins.zip
. Therefore, if you are following the guide, please make sure the paths are correct.