Howdy, I created a user macro that can act as a navigation tile. The end user can search for a Confluence page or use a URL.
Upon testing, a URL works, and so does a link to a page within the current space. Pages outside of the space do not seem to function.
The param:
## @param TileLink:title=Tile Link URL|type=confluence-content|desc=Link for tile|desc=Search for a Confluence page or paste the full URL path - must include http...
The code to utilize it:
<ac:structured-macro ac:name="html" ac:schema-version="1" >
<ac:plain-text-body>
<![CDATA[<script>
$( "#$!paramTileID" ).click(function() {
window.open("$!paramTileLink");
});
</script>]]>
</ac:plain-text-body>
</ac:structured-macro>
When looking at what the TileLink param contains for other spaces it shows <spacekey>:<pagename>. Any ideas how I can link to other pages outside of the current space?
Many thanks!
Hello @becki.marsh , I have written a lot of user macros, but have not used that parameter type. But I did find this discussion that might help you parse out what you need.
Thanks Bill, I'll have a read through that later and give it a whirl.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
It's a shame that the confluence-content type isn't more useful - I'll switch back to using a string :)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.