Now that we have an understanding of the Confluence editor, we can look at using styling, layout, tables, and macros to create rich and engaging pages.
We start by creating a new page, which we call Lorem Ipsum, and use the generator located at http://www.lipsum.com/feed/html to generate some paragraphs of text for us to use. If you have another document you wish to use, you can.
Most formatting can be done using your mouse and the editor toolbar, or using a keyboard with shortcuts. The latter makes editing pages very easy, but needs some getting used to.
We use paragraph styling and character formatting to emphasize parts of content or to separate the content into logical pieces. For our Lorem Ipsum page we are going to add some headings and quotes, and emphasize a few lines.
With macros in Confluence, you can add extra functionality or include dynamic information to a page. For example, an attachment macro can be placed on a page listing all attachments; if you add a new attachment to this page, this list is automatically updated.
Let's add the Panel macro to our page we created earlier:
In the previous section, we added a Panel macro to our page, which introduced the macro browser. The macro browser is a feature you will be using a lot to create your pages, and it is a great way to explore the different macros that are available to you.
Macros are grouped into one or more categories. The left panel of the macro browser is separated into categories. When a category is clicked, related macros are displayed in the right-hand section of the panel.
The macro browser search will use your query to filter by macro title and description.
After adding a macro to your page, Confluence will display a special box around your content. This is called the macro placeholder. This placeholder can be used to edit, remove, or copy/paste macros.
Left-click once on the placeholder to display the available options. These options can differ per macro. The options for a panel are displayed in the following screenshot:
To edit a macro, select the Edit option or double-click on the placeholder. Confluence will display the Edit 'Panel' Macro screen:
The large left section displays a preview of the content. On the right you can change the macro options, if those are available for your macro.
On the Lorem Ipsum page, we want to change the styling of the panel so that it looks like the previous screenshot. This can be achieved by performing the following steps:
#FF0000
(red)#FFEDED
(very light red)Almost every macro in Confluence can be updated using the context menu and Edit Macro dialog we just used.
When you are more familiar with the available macros in Confluence, you can also use the keyboard shortcut to add those macros to your page.
Type {
to start the macro autocompletion. Continue to type the name of the macro you are looking for, and the suggestions will be updated. Select the macro you are looking for, and it will be added to your page.
I already used the Panel macro to explain the macro browser, but it is worth mentioning again. The Panel macro is one of the macros I use the most. Panel macros are very useful for separating content, adding a bit of styling to your page, or to highlight a piece of content.
When we want to add structure to our page, it's most common to split the information into columns. An example I often use is for adding event information in Confluence. On the left side I add the event information, and on the right I add an RSVP.
Confluence offers two ways to add structure to your page:
The Confluence editor comes with a predefined set of page layouts, each providing two or more columns. Some layouts also provide a horizontal header and footer to the page. The layout you select determines the position of the columns and the relative width of those columns on the page. If you use a page layout, the content of the page is confined within the border of that layout and it is not possible to add content before or after.
To choose a page layout, perform the following steps:
If your page already has content on it, Confluence will put the existing content into the upper-left column of the new layout. If the page was already using a different layout, Confluence will put the content into the appropriate column of the new layout.
For example: You have a three-column layout and want to switch to a two-column layout. Confluence will merge the second and third column to one column by placing the content of the third column underneath the content of the second.
Keep in mind that the width of each column is set to a percentage of the total page width. Confluence will adapt the width of the columns to fit the width of the page. If a column includes a large table or object, the content may not fit, and you will see a horizontal scroll bar when viewing the page.
If the predefined layouts are not what you are looking for, and you want a bit more flexibility, it is also possible to use the Section and Column macros provided by Confluence. The Section macro defines the area that will contain your columns. It's different from the page layouts, in that you can have as many sections as you like, and within a section you can add as many columns as you like.
To add Section and Column macros to a page, perform the following steps:
In Edit mode, you would see the sections and columns represented as macro placeholders. This makes it a bit more difficult to see how your page would look in View mode.
In addition to the capability to add as many sections and columns as you like, the macros also have parameters that you can set.
The Section macro has the parameter Show Border
, which will display a border around the section and columns, if set to true
.
The Column macro has the parameter Column Width
. It defaults to 100 percent, divided by the numbers of columns in the section. The column width can be set in pixels or as a percentage of the available width.
Tables are very powerful; you are able to do almost everything that you would expect from tables in an editor. Tables in Confluence can highlight cells, rows, or columns, and include a sort feature in View mode.
To create a table, perform the following steps:
When you select the table in the editor, an extra toolbar will appear, with all the operations you can perform on a table. Let's go over the options available, from left to right.
Insert an empty row above the current selected row. |
Insert an empty row below the current selected row. |
Remove the current selected row. |
Cut the current row and copy it to the clipboard. |
Copy the current row to the clipboard. |
Paste the row from the clipboard to the current row. |
Insert an empty column to the left of the current one. |
Insert an empty column to the right of the current one. |
Remove the current column. |
Merge the selected cells. |
Split the selected merge cells. |
Mark a row as a table header. The cells in the row will be highlighted in gray and the text will be displayed in bold. |
Mark a column as a table header. The cells in the column will be highlighted in gray and the text will be displayed in bold. |
Highlight the cells with a background color. |
Remove the table. |
To speed up your work with tables, Confluence has keyboard shortcuts to perform most actions.
Windows |
Mac OS X |
Action |
---|---|---|
Ctrl + Shift + C |
Cmd + Shift + C |
Copy the current table or selected rows |
Ctrl + Shift + I |
Cmd + Shift + I |
Insert a new table |
Ctrl + Shift + V |
Cmd + Shift + V |
Paste the rows from your clipboard above the current row |
Ctrl + Shift + X |
Cmd + Shift + X |
Cut the current table or selected rows |
Alt + up arrow |
Alt + up arrow |
Add an empty row above the current row |
Alt + down arrow |
Alt + down arrow |
Add an empty row below the current row |
Attachments are defined as any file that is included with your page. We already discussed images as attachments before, but there are other examples too, such as screenshots, Word or PDF documents, and videos. Attachments are useful when you want to share information in a different format than plain text.
When the page you are viewing contains attachments, a small paperclip icon appears next to the page byline, just below the page name. If you click on the paperclip icon, you will be taken to the Attachments view, where you will see all the attachments.
Attachments on a page inherit the permissions of the page so that if a user doesn't have view permissions on a page, he or she can't view or download the attachment.
Attaching files to a page can be done using drag-and-drop, or by browsing for a file and uploading from your computer.
To attach a file using drag-and-drop, perform the following steps:
Files can also be dropped onto the Attachments or Editor view, and onto the Insert Link or Insert Image dialogs.
To attach a file via the "classic" upload approach, perform the following steps:
Confluence keeps track of the versions of an attachment uploaded to a page. By uploading an attachment with the same file name, a new version is added. Existing files will be kept with the name Version X
, which is incremented with every upload.
To see all versions of an attachment, click on the arrow next to the attachment name.
Please keep in mind the following points:
Users can download all attachments in Confluence, provided the user has the permissions needed to view the page the attachment is attached to.
To download a single attachment, perform the following steps:
To download all the attachments from a page, perform he following steps:
Downloading an attachment doesn't prevent somebody from uploading a new version of the attachment. This could potentially mean that, by uploading the attachment again, changes are overwritten. There are plugins available to enhance Confluence with a checkout mechanism, such as Lockpoint by Arsenale.
Once you have attached a file to a page, there are different methods for embedding the content of that file into your Confluence page.
You can embed many multimedia files with the Multimedia macro. This allows the user to directly watch or listen to your multimedia file without having to download it first. In some cases the user needs a separate plugin or decoder.
Supported multimedia files:
.swf
).mov
).wma
, .wmv
).rm
, .ram
).mp3
, .mp4
).mpeg
, .mpg
).avi
)To insert the Multimedia macro, perform the following steps:
The following table lists the macro parameters, and also provides a brief description for each:
Parameter |
Default |
Description |
---|---|---|
Page name |
Current page |
Name of the page to which your multimedia file is attached. Use autocomplete to find your page. If this field is left empty, the current page will be used. |
Attachment |
- |
File name of the multimedia file. |
Width |
Based on the file type |
Width of the movie window. Can be specified in pixels or as a percentage of the window's width. |
Height |
Based on the file type |
Height of the movie window. Can be specified in pixels or as a percentage of the window's height. |
Autoplay |
Off |
If checked, the video or audio file will start playing as soon as the page is loaded. If this option is not checked (the default), users will have to press the play button. |
You can't embed multimedia files from remote servers, but Confluence allows this with the widget connector, which is available as a macro.
Confluence can display Office files that are attached to a page. This is useful for users who don't have Office suite installed on their desktop or don't want to download the complete file.
Supported Office files:
.doc
, .docx
).xls
, .xlsx
).ppt
, .pptx
)To display an Office file in Confluence, perform the following steps:
Macro |
Parameter |
Default |
Description |
---|---|---|---|
All |
Page name |
Current page |
The Confluence page containing the attached file. If not specified, the current page is assumed. |
File name |
None |
The name of the attached file to be displayed. | |
Excel |
Show Grid? |
Yes |
Select to show grid lines around each cell. Deselect to hide these grid lines. |
Worksheet name |
Last worksheet viewed |
The name of the worksheet you want to display. | |
Last row |
Last row with content |
The number of the last row you want to display, starting from 0 as the first row. | |
Last column |
Last column with content |
The number of the last column you want to display, starting from 0 as the first column. | |
Powerpoint |
Height |
The height of the display in pixels or as percentage of the window's height. | |
Slide Number |
None |
If specified, Confluence will display a single slide as image, instead of a slideshow. The first slide is numbered 0. | |
Width |
The width of the display in pixels or as an percentage of the window's width. |
Text in PDF files may appear blurred when viewed using the PDF macro. This is by design, as Confluence converts the PDF to images and reduces their size to save bandwidth. This is not possible using the macro browser, so we have to use a trick which involves Wiki markup:
{viewfile:my.pdf|width=800|height=1000}
.my.pdf
with your file's name.Depending on your browser, you can also use drag-and-drop to embed multimedia and Office files into your page. Confluence will try to determine the correct macro and use it to display your attachment:
Confluence will attach the file to the page and insert the macro at your cursor position.
Images can be displayed on a Confluence page if the image meets one of the following conditions:
Once an image is displayed on your page, you can:
Once you have attached an image to a page, there are three different methods available for displaying the image:
!
to trigger the autocomplete function.This feature uses the drag-and-drop functionality of HTML5 and is, therefore, only available in browsers that support HTML5. Depending on your browser, you can attach and display an image with just one action. While editing a page, drag-and-drop an image from your desktop on to the page. The image is uploaded, attached, and displayed at the current cursor position.
It is also possible to display an image that is attached to a different page within the same Confluence installation; the page doesn't have to be on the same space. All you need to know is the name of the image.
Displaying images from other pages can be used to manage your images easily. You could upload all your images to a single page and avoid them being uploaded more than once. Your users do need view permission to the page, so if you have images to which you want to restrict access, don't use this method.
To display an image attached to a different page, perform the following steps:
You can display an image from a remote web page in your Confluence instance without needing to attach it to your page, if you know the URL of that image.
To display an image from an external web page, perform the following steps:
Once you have added an image into a page, you often need to edit the image. Confluence provides ways to do this using the image properties panel.
To change the size of an image, perform the following steps:
Images are displayed as thumbnails; clicking on the image in View mode will pop up a larger version of the image.
To add a border to the image, perform the following steps:
To use image effects, perform the following steps:
An example of an image with effects is shown in the next screenshot.
The only way to add a caption to an image is using the Instant Camera effect described earlier. Captions are very useful to add additional information about the image. Perform the following steps to add a caption to an image:
To add a link to your image, perform the following steps:
When you have many images attached to a page, you might want to display them as a gallery. The gallery displays the page attachments as thumbnails. When a user clicks on the thumbnail, a larger version of the image is displayed.
To display the images attached to the page as a gallery, insert the Gallery macro using the steps described in the Macros section.
Features of the Gallery macro:
Links are more important than you might think. Links enable you to connect to content from anywhere within Confluence, or from other websites or applications.
It is possible to link to the following content:
Links to pages can be created using the following methods:
You can use Autocomplete to create a link to any page in Confluence, if you know the name of the page you want to link to.
Start your link by typing [
to see a list of suggestions. Continue with the name of the page to search for the page you want to link to.
You can use the Insert Link dialog to create a link to a page. Perform the following steps:
To create a link to a web page, perform the following steps:
You can also paste a link directly into the Confluence editor. The link text will be the complete URL, which can be changed afterwards using the image properties panel.
It is also possible to link to a specific location within a page, by placing an Anchor macro at that location and then linking to the anchor.
To add an anchor to a page, perform the following steps:
{anchor
to use autocompletion to insert the macroTo link to an anchor, perform the following steps:
Use the following syntax when typing the anchor name:
Anchor Location |
Link Syntax |
Example |
---|---|---|
Same page |
|
|
Different page |
|
|
Page in another space |
|
|
You can directly link to a heading in Confluence without the need of an anchor. However, if somebody changes the heading, the link will be broken. Using an anchor will prevent this.
To link to a heading, perform the following steps:
In some case you want to insert a link pointing to a Confluence page that does not exist yet, but which you intend to create later. We call this type of link an undefined link.
To add an undefined link, perform the following steps:
[
to trigger the autocomplete function, and type the name of the undefined page.While you are working on your page, Confluence makes sure your work is saved. At regular intervals a draft is saved so that, in case of a network or server error, you can retrieve the last-saved draft and continue your work.
Drafts are created when you are adding or editing a page. By default, Confluence saves a draft every 30 seconds. A Confluence administrator can change this interval in the General Configuration setting. A draft is also created if you move to another site or page while editing a page.
When you edit the page again, Confluence will display a message stating there is an unsaved version of the page, and ask if you would like to discard it or continue with that version.
By default, Confluence saves a draft of a page that is being edited every 30 seconds. As Confluence Administrator, you can change this.
If you want to resume editing an unsaved page or blog post, you have two options:
If you created a new page but didn't save it, then the next time you create a new page in the same space, Confluence will ask you if you want to resume editing your previous page. If you choose resume editing, the draft is restored, and you can resume editing it.
While you are editing your page or blog post, it is possible to review the changes you made, before saving them. As soon as there is a draft saved of your changes, you will see the line Draft autosaved at ... (view change) at the bottom right, just below the Save button.
If you click on view change, a dialog will appear with the changes you made during this edit.
3.21.46.78