Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Default article in Confluence

kristofferb August 31, 2015

Hello,

After the latest update to Confluence, we now have a create button that doesn't open the page type prompt, but instead creates a blank page.

Our company is already using a specially created article template, which almost all pages use. It is not very practical for us to have the create button default to 'blank page', as nobody is using 'blank page'. Is it possible to change this behavior, to use a template as default? 

2 answers

0 votes
Bobby Taves November 23, 2016

I know this is an old thread but it appears pretty high in search results for users looking to control this functionality. While I find it very irritating that this is not an option that can be controlled, you can work around this limitation fairly easily if you host your own Confluence (v5+) installation. Follow these steps:

  1. Log in as a Confluence admin
  2. Click the Administration icon in the top right (Gear)
  3. Click "General Configuration" in the menu
  4. In the left navigation, find "Look and Feel" and click on "Custom HTML"
  5. Click the "Edit" button on the right
  6. In the first box ("At end of the HEAD"), enter the following:

    <script>
    jQuery(document).ready(function() {
        jQuery("#quick-create-page-button").bind('click', function(evt){
            jQuery("#create-page-button").trigger("click");
            evt.preventDefault();
        }).attr("title", "Create page from template");
    });
    </script>
    <style type="text/css">
        #create-page-button {visibility: hidden;}
        #quick-create-page-button {border-top-right-radius: 3.01px; border-bottom-right-radius: 3.01px;}
    </style>

What this does is hide the "More" button and make the "Create" button act like the "More" button would.

 

0 votes
Milo Test
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
August 31, 2015

I don't think there is a way to change the operation of the Create button. There is now a "More" button (the three dots) next to the Create button. You can create a feature ticket to request the ability to assign a default behavior.

For now, you can retrain users to use the "More" button, or use a macro like the Create Page Macro to automatically create a page using a specific template.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events