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 Oct 24, 2018 in Confluence

Atlassian Research opportunity with Confluence templates

Do you use templates with Confluence? Take part in a remote 1-hr workshop. You'll receive USD $100 for your time!   We're looking for people to participate in a   remote 1-hr workshop...

960 views 14 12
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