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

This widget could not be displayed.

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: https://confluence.atlassian.com/display/DOC/Writing+User+Macros

Hope it helps!

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted Monday in Confluence

Why start from scratch? Introducing four new templates for Confluence Cloud

Hi my Community friends!  For those who don't know me, I'm a product marketer on the Confluence Cloud team - nice to meet you! For those of you who do, you know that I've been all up in your Co...

399 views 4 6
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