How To Disable Blank Page/SPACE Template in Confluence

How To Disable Blank Page and SPACE Template

 

A lots of organizations do not prefer use of blank pages and SPACE. The option to use them is readily available for all users but there is no built-in functionality to disable the quick page create option and Blank SPACE template use.

 

How-To

 

  1. Disable quick page create from Menu

 

           Insert the following code snippet in the Custom HTML

           <script type="text/javascript">
                             AJS.toInit(function(){
                             AJS.$('#quick-create-page-button').hide();
                             AJS.$('#create-page-button > span.aui-iconfont-more').removeClass("aui-icon aui-icon-small aui-iconfont-more");
});
          </script>

 

       2. Disable the system module for " Creating Blank Page "

 

curl --user "username:password" --location --request PUT '<baseurl>/rest/plugins/1.0/com.atlassian.confluence.plugins.confluence-create-content-plugin-key/modules/create-blank-page-key' \
--header 'Content-Type: application/vnd.atl.plugins.plugin.module+json' \
--data-raw '{
"enabled": false
}'

Here , plugin key : com.atlassian.confluence.plugins.confluence-create-content-plugin

and module key : create-blank-page

 

       3. Disable the system module for " Creating Blank SPACE "

 

curl --user "username:password" --location --request PUT '<baseurl>/rest/plugins/1.0/com.atlassian.confluence.plugins.confluence-create-content-plugin-key/modules/create-blank-space-item-key' \
--header 'Content-Type: application/vnd.atl.plugins.plugin.module+json' \
--data-raw '{
"enabled": false
}'

 

Here , plugin key : com.atlassian.confluence.plugins.confluence-create-content-plugin

and module key : create-blank-space-item

 

How-To Template.

The How-To Template gets affected by this method. It will not launch as expected. So the way out may be to create a new customized How-To template.

 

1 comment

G subramanyam
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
June 15, 2022

Thank you for sharing this insightful steps @Vickey Palzor Lepcha 

Comment

Log in or Sign up to comment
TAGS
AUG Leaders

Atlassian Community Events