Is there a way to display content in confluence 3.5 based on some condition? Eg the presence of a label is good enough.
The if-label user macro is almost perfect, but it doesn't work well for:
Thanks in advance for any answers! Bounty 20 points is on offer :-)
How about using html macro and adding javascript in there:
<html> <body> <div id="container" style="float:left;"> my<br> dynamic<br> contents </div> <script type=text/javascript> var container = document.getElementById('container'); var containerHeight = container.clientHeight; if (containerHeight >= 100) { dispaly("big sideBanner"); } else if (containerHeight > 50 && containerHeight < 100) { display("middle sideBanner"); } else { display("small sideBanner"); } </script> </body> </html>
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.