Access Keys:
Skip to content (Access Key - 0)

Using flags for custom user preferences


This forum has now moved. These topics have been left as a read-only archive. Please create all new topics in the Community space.


Hi,

Maybe a bit cryptic description, but what I'm after is the following:

  • We use confluence to document a programming API. In the API are deprecated objects.
  • I'd like to provide the user with a checkbox on the page to toggle the deprecated objects visiblility.

So, I can wrap the deprecated objects inside a builder-show/hide macro that acts on the status of a flag, question is: how to control the flag.

I was thinking of providing a button/checkbox through a (user)macro, some clientside JS to get/set a cookie, so their preference is stored persistent etc.

Question is: is this feasible to do? Can I, from a user action in the browser trigger the rerendering of the page, passing in the value for the flag somehow?

And on load of the page, can I set the flag value based on teh cookie value somehow?

Don;t mind doing a bit of digging myself, but don't like to spend much time going after something that is impossible

Any thought appreciated.

P.



Ask questions, get help and report bugs & issues on our Community Site

View old comments


Adaptavist Theme Builder Powered by Atlassian Confluence