Can I control what the user profile macro displays?
Asked by William (Bill) E. Allcock:

I am a newbie to Confluence, working on a Mac if that matters. I dont know which version of confluence we are running, but I am told we are normally 2 back from the latest.

I am building a team page. Near the top, I have a table and in each cell of the table, I have a call to the default user profile macro. AFAICT, the user profile macro will display any field in the user's profile that has a value, except, oddly enough, the email address. So my questions are:

* Can I control which fields are displayed without asking people to clear the fields in their profile to prevent them from being displayed? (the issue is how much space it takes up if it displays everything). Presumably, if I can do this, I can solve the email not showing problem as well.
* If the above is not possible, is there a way to get it to show the email address (it does have a valid email address in the field)
* As a bonus, is there any way to wrap or constrain the maximum width of the display? One of the profiles has a very long web address and it really mucks up the table.
* Finally, if there is a better way to than using a table to control the layout, I would be happy to hear about that as well.

I would appreciate any assistance you can provide.

Thanks,

Bill


Answers:
author: JP _AC Bielefeld Leader_
body: Hi,

don't assume that all your users have the same screen size that you use. What happens if someone has a 4K display or the other way around uses a smartphone to view the page. Imagine someone just resizes the browser window...

Please don't try to use a table to layout your page. Keep in mind that there are numerous ways of displaying a page. If the page displays nice on your screen someone else will have massive problems viewing this page.

Concerning the email address: Why are you trying to lead the communication \& collaboration away from Confluence? Anyone viewing the page can reply with a comment or just share the page without knowing the real email address of the user.

With the default user macro you cannot control what is displayed in the macro except from telling your users what to fill in and what not. You might try to search for an alternative solution in the Atlassian marketplace

[https://marketplace.atlassian.com/search?hosting=server\&product=confluence\&query=user%20profile](https://marketplace.atlassian.com/search?hosting=server&product=confluence&query=user%20profile)

or by creating ( or have someone creating) a user macro (has nothing to do with the user profile, it's just an extension macro an administrator can create without buying an addon), which displays the user information you need.

Best

JP

comments: author: William (Bill) E. Allcock
body: JP,

Thanks for the reply. One follow up question. You said don't use a table and I get your reasoning, but how can I control the layout? Before I had the table, all of the profiles were stacked vertically down the page even though I had plenty of horizontal screen space and it looked bad and pushed the other information way down the screen. I would like the profiles to display left to right, top to bottom, wrapping as necessary based on screen width.

Thanks,

Bill


Tags: confluence-server

server