Is there some way I can surface a watch/unwatch space link in page content rather than making the user go to Browse -> Advanced?
My first thought, after built-in macros, was the link-to macro but that doesn't seem to have space watch/unwatch as an available target.
It looks like this might be possible via a user macro and velocity but I've never used velocity before and I'm having trouble working out how I'm going to do this.
Any pointers or existing solutions for this?
Hi,
I did some quick tests on a 4.3.2 Confluence instance and basically if you go to Space Admin > Layout > Page Layout for example, you can use this code to display a watch icon:
<div class="entity-watching" data-entity-id="$spaceKey" data-entity-type="space"> <a class="icon icon-stop-watching" title="Stop watching this space">Stop watching this space</a> <a class="icon icon-start-watching hidden" title="Start watching this space">Start watching this space</a> <span class="icon icon-wait hidden"></span> </div>
I hope this helps,
Peter
Thanks Peter. Doesn't quite work as-is for me since I need in in specific pages rather than across the whole space but certainly gets me 90% of the way there. :)
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.