I'm looking for a solution in which a few parts of content change (code snippets) depending on the selection done in the filter (select OS, browser, and resolution).
Hello there Rahul!
Currently, Confluence does not have a native function that does exactly this. We could workaround this and reach similar results by using two macros together:
- Expand Macro
- Code Block Macro
Inserting an Expand Macro and then within it, the Code Block Macro. Granted, it will occupy more space than the example you provided. In edit mode, this setup would look like this:
Further, there are third-party solutions that may help you out. One of them is Advanced Codeblock Macro:
Advanced Codeblock Macro - Marketplace Page
Advanced Codeblock Macro - User Guide
Let us know if this helps out your objectives!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.