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

Nik November 5, 2012

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

0 votes
Bruna Griebeler
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
December 17, 2012

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
TAGS
AUG Leaders

Atlassian Community Events