Hello community,
I try to write a Page Approved User Macro.
The variable $username should show who added the Macro.
#set ($username="$req.getRemoteUser()" )
<th class="confluenceTh"><p>Approved:</p></th><td class="confluenceTd"><p>$username</p></td>
But this shows always the loggend in user. I thought with #set its possible to save the current user and display it later with $username.
can you help me?
$req is the incoming http call, not the page object, that's why it renders the current user.
You should be looking at $content
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.