Confluence Macro that customizes displayed content by viewer's OS/Browser/other software

Mozilla Support uses a well-designed wiki for its Knowledge Base. The KB uses a "macro" they call For. Here's how they explain it.

One of the great features of our Knowledge Base is the ability to show instructions customized for operating systems (Windows, Android, etc.) and Firefox versions. We can say, for example, that a certain section of a help article is "for" Windows users and Mac and Linux users won't see it. The feature is designed to work invisibly. When someone opens a help article, we'll automatically detect what operating system and version of Firefox they are using and show the appropriate instructions.

Is there a Confluence plugin that performs a similar function? I've done some searching, but haven't found anything. If there isn't something that exists, any ideas on how complicated making a macro like this would be?

1 answer

Hi Axxil

As far as I know we don't have a plugin ready for this purposes.

However the workaround is to create labels (like Windows, Linux) and then create a User Macro to show the links for different versions/operating systems;

The idea is to set the macro to show the same link, just changing it regarding the label.

For more info about how to create User Macros:

Hope it helps!

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted Feb 06, 2019 in Confluence

Try out the new editing experience

Hi team, I’m Avinoam, a product manager on Confluence Cloud, and today I’m really excited to let the Community know that all customers can now try out the new editing experience and see some of the ...

1,377 views 100 8
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you