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.
Sweet! Good to know. Much easier.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Can you show me where to put the link http://www.atlassian.com? Can you format the title font color?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Jonas Jurczok Thanks for this! I'm using Server, but it seems like the brackets don't work when there is a special character in the page title, and your suggestion solves that problem.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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>
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.