I'd like to add a hyperlink to the Panel Title portion of the Panel macro, so that users can click the panel's title and link off to another page.I have tried using the following with no luck (as an example):
{html}<A href="http://www.atlassian.com">9999</A>{html}
<A href="http://www.atlassian.com">9999</A>
Does anyone know if this is possible using the Panel macro?
Thanks!
Stephen
Thanks Davin! I actually got it working by simply placing the page's title within [] brackets, similar to how it was done in Wiki Markup pre 4.0. Doing this automatically creates a hyperlink.
You could do this inside an HTML macro.
<script type="text/javascript"> var url = 'http://www.google.com'; //<-- the url to visit var panel = AJS.$('.panel .panelHeader')[0]; //<--- [0] is the first panel, [1] is the second, and so on AJS.$(panel).html('<b><a href="' + url + '">' + AJS.$(panel).text() + '</a></b>'); </script>
Sweet! Good to know. Much easier.
Can you show me where to put the link http://www.atlassian.com? Can you format the title font color?
To update the answer..
In the current version of hosted confluence the described solution does not work anymore.
You can use normal markdown in the title though.
This means [display text | url ] (without the extra spaces) will be rendered as link.
It looks like you're new here. Sign in or register to get started.