Monday, September 26, 2011

Column Width Not Working

Recently, I tried to define the width of a column as such:

{section}
{column:width=400px}
Cell 1A
{column}
{column:width=400px}
Cell 1B
{column}
{section}

However, Confluence would not recognize the defined widths. After spending hours trying to figure out the solution, I found a JIRA ticket that provided a workaround—add a blank column at the end of each section.

{section}
{column:width=400px}
Cell 1A
{column}
{column:width=400px}
Cell 1B
{column}
{column} {column}
{section}

Thanks to Tomi Strugar for the workaround.

Thursday, September 22, 2011

Add a Site-wide Banner

To add a site-wide banner to Confluence:
  1. From the Browse dropdown, select Confluence Admin.
  2. The Administration Console page opens.
  3. Locate the Look and Feel section toward the middle-left of the page.
  4. Select Custom HTML.
  5. The Custom HTML page opens showing the Insert Custom HTML table.
  6. Press the Edit button at the bottom of the table.
  7. In the At Beginning of the Body text box, enter code similar to:
    • <!-- Message Banner -->

      <div style="background-color: gold; border: 2px solid red; margin: 4px; padding: 2px; font-weight: bold; text-align: center;">

      Enter message here.

      </div>















  8. Press the Save button.
________________________________________________________________

TIP! When you no longer need the banner, comment it out instead of deleting it from the table.

Additional information can be found here.

Tuesday, August 2, 2011

Add Image to PDF Export

To add an image to your PDF export in the title page, header or footer:
  1. Access the appropriate space.
  2. Attach the image to a page in the space.
  3. Click the image's name link.

















  4. The image opens in a new window.
  5. Copy the image's URL starting with /download/.

    For example:
    /download/attachments/107675675/PDFLayout.png

  6. Access the space's PDF Layout page by going to Browse > Space Admin > PDF Layout.
  7. Press the Edit button. 
  8. In the title, header or footer section, enter code similar to: 

  9. <img src="/download/attachments/107675675/PDFLayout.png"/>

  10. To center the image and set a top margin and page break, use:

  11. <div style="text-align:center; margin-top:35mm; page-break-after:always;"><img src="/download/attachments/107675675/PDFLayout.png"/></div>























  12. Press the Save button.
________________________________________________________________

See the Editing the PDF Stylesheet page for more information.

Friday, July 29, 2011

Add Page Numbers to a PDF Export

To add page numbers to a PDF export, enter the following code in the PDF Stylesheet:

     #pageNum:before
     {
     content: counter(page);
     }




















Access the PDF Layout section.























Enter code similar to following in the PDF Space Export Header or PDF Space Export Footer section of the PDF Layout:

     <div style="text-align:right;"><span id="pageNum"/></div>























To edit the PDF Stylesheet page, open the space then go to Browse > Space Admin > PDF Stylesheet > Edit button.

To edit the PDF Layout page, open the space then go to Browse > Space Admin > PDF Layout > Edit button.

________________________________________________________________

See the Editing the PDF Stylesheet page for more information.

Tuesday, July 26, 2011

Remove TOC from PDF Export

To remove the table of contents from your PDF export, enter the following code in the PDF Stylesheet:

     div.toc
     {
     display: none;
     }

To edit the PDF Stylesheet page, open the space then go to Browse > Space Admin > PDF Stylesheet > Edit button.

Monday, July 25, 2011

Can't Find Restored Page

When a space admin restores a deleted page from the Trash, the page becomes an orphaned page within the space. To see the page, go to Browse > Pages > Tree view. Make sure to move the page under the appropriate parent page.



Thursday, July 21, 2011

Workaroud for Check In, Check Out

Confluence does not allow users to check in and out pages. To work around this issue, restrict the page so that only you can edit it. Once you are finished, remove the restriction.

To restrict the page:
  1. Edit the page.
  2. Locate the Restrictions section near the bottom of the page.
  3. Click the Edit link.
  4. The Page Restrictions window opens.
  5. Select the Restrict Editing of this Page radio button.
  6. Select the Me icon.
  7. Press the Save button.
To remove the restriction:
  1. Edit the page.
  2. Locate the Restrictions section near the bottom of the page.
  3. Click the Edit link.
  4. The Page Restrictions window opens.
  5. Locate the listed restriction.
  6. Click the Remove Restriction link.
  7. Press the Save button.

Monday, July 18, 2011

Remove Scrollbar from Code Macro

It's Monday morning, and I've already received a request for help with the {code} macro. The box started showing a scrollbar for all text, regardless of length. To fix the issue, I added the following CSS to the space's stylesheet.

div.code, div.preformatted {
overflow: visible;
}




________________________________________________________________

Check out this webpage for additional information on the {code} macro:

Friday, July 15, 2011

Page Copy Does Not Copy Children

Today a user wanted to know if she could copy a page and have it copy the children. Neither of us could figure out how to do this. So I ended up:
  1. copying the space, 
  2. making it a subspace of the Archives space,
  3. moving its home page under the Archives home page, then
  4. deleting the subspace.