UI expand and User profile macro
Asked by sam:

When putting the user profile macro inside the UI expand if the user has profile information loaded it shows even when the UI expand is collapsed/closed. The user profile picture doesnt show until the section is expanded(as i would expect) but the profile's contact info/phone numbers etc show even when UI expand is collapsed.

Is there a way to only show user profile information only once the UI is expanded? (the macro seems to work fine UNLESS the user has profile information loaded. In that case the profile information for whatever displays regardless of the state of expand/collapse

-Sam


Answers:
author: sam
body: hello! Dominic, thanks for responding :)   

Im on version

* Powered by [Atlassian Confluence](http://www.atlassian.com/software/confluence) 6.8.1

here are some screen shots.

in EDIT MODE:

![2019-10-09 09_34_54-System Support and Training DRAFTING - Global Solutions Technical Operations - W.png](https://community.atlassian.com/t5/image/serverpage/image-id/68919i400FFDA133AD3894/image-size/large?v=v2&px=999 "2019-10-09 09_34_54-System Support and Training DRAFTING - Global Solutions Technical Operations - W.png")

----------------------------------------------

In Preview mode it works properly. All info is hidden

![2019-10-09 09_35_07-System Support and Training DRAFTING - Global Solutions Technical Operations - W.png](https://community.atlassian.com/t5/image/serverpage/image-id/68920iF62BA0EAA5D00BF7/image-size/large?v=v2&px=999 "2019-10-09 09_35_07-System Support and Training DRAFTING - Global Solutions Technical Operations - W.png")

------------------------------------------------

In regular view outside of edit... if someone has profile information inputted it seems to over write the expand ui function and show even though it is placed inside the expand ui box. Below Kevin has profile information so it displays "through" the expand UI. Mike does not have any profile information loaded so nothing shows.

![2019-10-09 09_38_49-Presentation1 - PowerPoint.png](https://community.atlassian.com/t5/image/serverpage/image-id/68922i762274F91D2359B2/image-size/large?v=v2&px=999 "2019-10-09 09_38_49-Presentation1 - PowerPoint.png")

comments: author: Dominic Lagger
body: oh okay, I see.

I tried with the normal "[expand macro](https://confluence.atlassian.com/doc/expand-macro-223222352.html)" from confluence, not with UI macro.

It seems there is a bug in the UI expand macro. Perhaps, some developer from Refind will see the post and can help.

Perhaps, the normal expand macro will help.

Regards

Dominic


author: sam
body: I just tried the "text" expand instead of the UI expand and the same symptom presents for me

(unless there is another expand macro that im not aware of)


author: Dominic Lagger
body: Yes, there is another expand macro, not from UI expand.

The normal out of the box expand macro from confluence. Try this one.

--\> [Expand macro](https://confluence.atlassian.com/doc/expand-macro-223222352.html)


author: sam
body: yes so there is the UI expand.. and the regular expand. They both still exhibit the same thing.

![2019-10-10 09_05_26-Copy of JQRs and POCs for testing - Samuel Park - WS Confluence.png](https://community.atlassian.com/t5/image/serverpage/image-id/69058i8A95B8FC1BD31718/image-size/large?v=v2&px=999 "2019-10-10 09_05_26-Copy of JQRs and POCs for testing - Samuel Park - WS Confluence.png")

Nesting it twice seems to solve the issue although it will be a pain to double up that macro everywhere. (make a expand macro, place another expand inside, THEN the user profile macro)


author: Dominic Lagger
body: okay, this is weird... because I tried with the normal expand macro and it worked.

then I think you have to [contact the support](https://support.atlassian.com/contact/#/)


author: sam
body: I'll try support :) Thank you so much for helping out


author: Dominic Lagger
body: Hi [@sam](/t5/user/viewprofilepage/user-id/3589865)

I tried what you described. It worked well.

![Expand_UserProfile1.png](https://community.atlassian.com/t5/image/serverpage/image-id/68872iB4315EFF5B88A039/image-dimensions/246x140?v=v2 "Expand_UserProfile1.png")![Expand_UserProfile2.png](https://community.atlassian.com/t5/image/serverpage/image-id/68873i6680BA5AAA153130/image-dimensions/191x176?v=v2 "Expand_UserProfile2.png")

This leads me to a few questions.

* Which version of confluence do you use?
* Can you provide a screenshot of the page in edit and view mode?

Regards

Dominic


Tags: confluence-server

server