Confluence 4.2 is Here

Confluence NinjaAtlassian continue to iterate faster than a ninja in slippers with the release of Confluence 4.2 today; a mere 4 months since the release of Confluence 4.1 and just 7 months after Confluence 4.0 was unleashed on the world.

There have already been a few teaser blog posts detailing some of the new functionality in 4.2:

but here’s a look at what else is new.

Page Layouts

If you’re familiar with Confluence you’re probably familiar with the fun and games you could get into nesting {section} and {column} macros to try and bring some order to your pages – see one of my previous blog posts for an example. With Confluence 4.2 that pain is taken away with the introduction of predefined page layouts.

Page Layouts

Likes and Quick Comments

Confluence 4.2 also introduces Facebook style “Likes” to help encourage user engagement and identify popular content. Engagement is also encouraged via the new comment functionality which invites users to comment by displaying their profile picture and launching the comment dialogue with a single click.

Likes and Quick Comments

Popular Content and Personalised Email Summaries

Your users are flagging the content that they like and Confluence 4.2 makes it easy for them to stay in the loop with what’s hot with popular content on the Dashboard and personalised email summaries.

Popular Content Dashboard

Popular Content Email Summary

If you like what you’ve seen so far head on over to the official announcement to get the full details, or why not jump right in and download Confluence 4.2 today.

Related Links

S7RUCAW2VRKH

Confluence Source Editor

When Atlassian took the brave/clever/stupid/awesome/crazy1 decision with the release of Confluence 4 to remove the wiki markup editor and only provide a single WYSIWYG editor, the reaction was, er, let’s call it “mixed.” Many people, myself included, think the new editor is very slick, very useable and it makes it very easy to quickly create rich-content pages, but there are a lot of people who are seeing real issues with the new editor, particularly around formatting and the lack of ability to edit the underlying XHTML, and had very strong views that the ability to edit wiki markup and/or the source XHTML should be reinstated.

Fortunately, Atlassian are one of the few companies that actually listen and respond to their customers and they quickly set up a page to gather customer feedback which has recently resulted in the release of the beta version of the Confluence Source Editor. The source editor plugin is compatible with Confluence 4.1.5 and above and can be downloaded from the Atlassian Plugin Exchange.

After installing the source editor plugin you will see a new icon when you edit pages:

Edit Source Icon

which will give you the ability to edit the raw Confluence XHTML Storage Format:

Confluence Source Editor

Your Opportunity to Shape Development

As mentioned, Atlassian are one of the few companies that positively react to customer feedback and this is your chance to shape the development of the source editor. This is just the beta release and Atlassian are welcoming feedback / bug reports and are also asking for YOUR input to the specification for the editor.

So it’s over to you :-) Download the plugin, install it, play with it and have your say on its development. It is only available for Confluence 4.1.5 and above, but even if you are on a lower version it takes less than 30 minutes to download and be up and running on an evaluation version of the latest release so that you can try it out.

Related Links

1 – delete as appropriate per your view point

Mailto Link in Confluence User Macro

In response to this tweet:

 

here’s how to create a Confluence User Macro which will create a “mailto” link which dynamically has the page title as the subject of the email and the page title and URL of the page in the body of the email.

1. Log in to Confluence as a Confluence Administrator

2. Select Browse -> Confluence Admin -> User Macros

3. Create a new User Macro:

Create Mailto Macro

Template:

## Macro title: Mail To
## Macro has a body: N
## Body processing: Selected body processing option
## Output: Selected output option
##
## Developed by: Andrew Frayling
## Date created: 26/01/2012
## Installed by: My Name
## Simple Mail to macro which constructs a <a href=mailto:> link
## with the page title as the subject and the page title and URL of
## the page as the body
## @param email:title=Email Address|type=string|required=true
<a href="mailto:$paramemail?subject=Page Title: $renderContext.getPageTitle()&body=This is the page I am mailing you from: $renderContext.getPageTitle() - $action.getGlobalSettings().getBaseUrl()$content.getUrlPath()">Click to Email Me</a>

The variables in the template are:

@param email:title=Email Address|type=string|required=true – prompts the user for an email address that they would like the mailto link to send the email to

$renderContext.getPageTitle() - retrieves the title of the page that the macro is inserted into

$action.getGlobalSettings().getBaseUrl() – retrieves the base URL of the Confluence install

$content.getUrlPath() – retrieves the URL path of the page that the macro is inserted into

Therefore the full URL of the page is $action.getGlobalSettings().getBaseUrl()$content.getUrlPath()

4. Save the user macro

Now when you edit a page you can use the wiki markup:

{mailto:email=joebloggs@example.com}

where joebloggs@example.com is the email address of  where you would like the mailto link to send the email, or select the macro from Insert -> Other Macros

Insert Mailto Macro

Which will give you the following link on a page:

View Page

Clicking the link will result in an email being composed in your default email client:

Compose Email

I did spend some time trying to get the URL in the email to be rendered as a clickable <a href> link, but a URL within a URL didn’t want to play ball.

Confluence 4.1.2 Sneak Peek

In the current Confluence 4.x editor if you want to insert the {info} macro with a title into a page you have to:

  1. Start typing {info to trigger the macro suggestions macro
  2. Select the Info macro from the list to insert it into the page
  3. Click on the inserted Info macro to select it
  4. Enter your chosen title in the Edit Info Macro screen
  5. Click save

which is all a bit long winded, but here’s a sneak peek of the new autoformatting of wiki markup for macros feature due to be shipped in Confluence 4.1.2 over the next couple of weeks:

Autoformatting of Wiki Markup for Macros

As you can see you just type:

{info:title=<my title>}

Nice :)

Atlassian have taken a fair bit of stick over the decision to drop plain text wiki markup editing from Confluence 4.x onwards so it’s good to see them listening to their customers and continually improving the new rich text editor to make editing as easy as possible for new users and hardcore markup editors alike.

I’m looking forward to seeing what other improvements and new features Confluence brings in 2012.

UPDATE: 24 January 2012

More polished video now available:

courtesy of this Atlassian blog post.

Confluence 4.1 – Space Attachments

In case you missed the news, Confluence 4.1 was released yesterday and amongst the new features it provides is a little gem called Space Attachments which has been 6 years in waiting as a requested feature.

In previous versions of Confluence you could attach files to pages, display attachments on the page they were attached to, display attachments from other pages and display attachments from other Spaces, but there was no easy way of displaying all attachments from a Space on a single page. Until now.

Say, for example, you have a Space containing training materials for different products and want to provide a single page where users can download all of the attached training resources that are scattered throughout the Space, e.g.

Space Hierarchy

With the new Space Attachments macro you can simply create a page (Download Resources in this example) and as soon as you start typing {space in Edit mode, Autocomplete kicks in an presents you with the Space Attachments macro:

Space Attachments Autocomplete

If you then edit the macro via Property Pane you can choose the Space that you wish to display attachments from (leaving it blank to display attachments from the current Space) and optionally specify a filter for file extension:

Space Attachments Macro

The resulting page will show a list of all the attachments in the Space you specified, the pages in the Space that they are attached to and an option to filter by file extension, e.g. PDF

Space Attachments List

Space Attachments have been a long time coming and are very much a welcome addition :)

For more information on the goodies available in Confluence 4.1 check out Edit like a pro with Confluence 4.1 and the Confluence 4.1 Release Notes.