I have code like this:
{report-block}
{local-reporter:content:descendents|source=PUB:Surce Page}
{text-sort:content:title}
{local-reporter}
{report-body}
h3.{report-info:content:title|link=true}
{report-info:content:excerpt|render=wiki}
----
{report-body}
{report-block}
Now, I want give User posibility to choose if he wants to see page's title and the content, or only a title. So, I need two things:
1. some macro which let user to choose 'view mode' (some kind of checkbox)
2. some macro which has option to show/hide the content on condition
I tried to work with {checklist} macro and {builder-show} (does it work with default theme?), but I failed. I don't know how to connect them.
Not quite perfect, but take a look at the run macro, which lets you pass parameters to a page and then modify page content based on those parameters. Great for changing parameters to an SQL macro, but can also change content of the page itself. You could possible rig it to activate a nodisplay macro to hide content.
Actually, even better would be to use it to pass a parameter to Adaptatvist's cloak macro which can show/hide content.
If you're really adventurous, you could include content to toggle CSS styles to show/hide information, much like the Confluence Documentation Theme shows/hides a side panel. Mark secitons with a style macro and then create a trigger mechanism.
Let us know how you go!
The solution with CSS styles sounds promising. Could You give me some hints?
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.