How to hide the sidebar and All Updates on 7.12
プラットフォームについて: Server および Data Center のみ。この記事は、Server および Data Center プラットフォームのアトラシアン製品にのみ適用されます。
Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.
*Fisheye および Crucible は除く
Please note that all the workaround stated on this page are beyond Atlassian Support Offerings.
要約
After upgrading to 7.12, the existing Stylesheet code to hide the sidebar and All Updates do not work.
環境
Confluence 7.12
原因
In 7.12, some of the HTML code has been changed by AUI9. The details of the changes are here.
ソリューション
Add the following code to General Configuration > Custom HTML in the At the end of the HEAD:
<script>
AJS.toInit(function(){
if (AJS.params.remoteUser == ''){
AJS.$('section.aui-sidebar').hide();
AJS.$('main.aui-page-panel-content.content-body').hide();
}
});
</script>