The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Rendering content depending on the selection done in filter.

Rahul Kumar
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
November 26, 2018

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

1 answer

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

0 votes
Diego
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
December 5, 2018

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:

Screen Shot 2018-12-05 at 16.37.32.png

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!

TAGS
AUG Leaders

Atlassian Community Events