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).
Example- https://www.browserstack.com/automate/java
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
- 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 PageAdvanced Codeblock Macro - User GuideLet us know if this helps out your objectives!
It looks like you're new here. Sign in or register to get started.