Child pages
  • User Contributions
Skip to end of metadata
Go to start of metadata

Have a tip or trick you'd like to share?

Here's your chance to give a little something back to the community by sharing with others new ways to use the wiki!

Table Of Contents

Macros

expand

Looking for an easy way to organize FAQs? Try the expand macro.

{expand: How neat is Confluence?} *Answer:* Neat-o! {expand}

Layout Techniques

Changing the look of Confluence with CSS

Inline Styles

You can add CSS styles to confluence content this way:

{style} h2 {font-size: 15px; color:#006600;} {style}

Caveat

Any styles you define within the content of a Confluence page come after Confluence's master style sheets - so any property that has already been defined by your space's theme can't be redefined. Digging around with the Web Developer Firefox Add-ons can help you figure out what's already been defined, and what can be styled.

Included Styles

You can use the above technique to define inline styles, but for consistency across a whole space I find it easier to include the styles on each page so you can change them once and cause the change across a large number of pages. Two ways to do it:

If your style is in a wiki page

If your stylesheet is a CSS document on a webserver

{include:stylesheet}
{style:media=screen|import=http://www.csuchico.edu/tlp/_styles/wikistyles.css}{style}

Include Styles

To avoid warnings from Internet Explorer about Mixed Content security issues, you can use HTTPS if the file is located on the campus web server.
Example: https://csuchico.edu/YOUR_DEPT/styles.css

Using included styles to control the Table of Contents

I wrote a little tutorial about how I achieved the "floated to the right" table of contents on our Vista Knowledge Base pages.
Modifying the Look and Feel of Confluence with Secret Ninja CSS Tricks.

Spaces

Adding a space description

With the latest version of Confluence you might have noticed the on the Dashboard you can now read a short description of a space.

If you'd like to have a description of your space appear on the Dashboard and you're the space administrator for your area, go to the Space Admin screen and click on Edit Details.

On that screen you can put in a description of your space.

Dashboard Limits

Only the first 120 characters will appear on the Confluence Dashboard.

Content By Label

The contentbylabel macro can be a powerful ally when combined with judicious labelling (tagging) of confluence pages. For instance, to create an instant list of links to confluence pages which use the label "security", you would write:

{contentbylabel:security}

An interesting permutation of this is to create a list of the user's "favorite" pages, which are basically pages the user has bookmarked by clicking the favorite "star" icon on any given page:

{contentbylabel:my:favourite|showLabels=True|showSpace=True|excerpt=false|type=page|maxResults=15}

. Using this code, here are your five most favorite Confluence pages:

Error rendering macro 'contentbylabel'

Invalid label: "my::favourite"