Using the Spaces list by category macro, are we able to only show ONE category per space?
Asked by Dayana Boyanova:

I thought I had found the answer to this question here: <https://community.atlassian.com/t5/Confluence-questions/Show-a-Space-List-within-a-page-using-Category-label/qaq-p/149585>, but it turns out we have Cloud and not Server 6.8.

We just need this macro to go to individual pages that shows individual categories and would not change with other macros.


Answers:
author: jrodriguez
body: Is this seriously still broken 3 years later??

comments: author: jrodriguez
body: I'm fine showing only one category, but I'm unable to even choose the category I want to show... I'm on Jira Cloud.


author: Michael Moss
body: Yeah, it's broken on Cloud.


author: Linda Gardea
body: Here is something I plan to try with a user macro to solve this problem - nevermind I see you are on cloud:  

<https://community.atlassian.com/t5/Confluence-questions/Show-a-Space-List-within-a-page-using-Category-label/qaq-p/149585>


author: AnnWorley
body: Hi Dayana,

The [Spaces List Macro](https://confluence.atlassian.com/confcloud/spaces-list-macro-724765290.html) displays the list of spaces depending on the category chosen from the pulldown:

![Screen Shot 2018-06-22 at 2.06.01 PM.png](https://community.atlassian.com/t5/image/serverpage/image-id/25208i3ADD2ECEAED89B78/image-size/large?v=v2&px=999 "Screen Shot 2018-06-22 at 2.06.01 PM.png")

I am not sure what is meant by:

"We just need this macro to go to individual pages that shows individual categories and would not change with other macros."

I will be happy to help with your use case after I understand more clearly.

Thanks,

Ann

comments: author: Dayana Boyanova
body: Hi Ann,

We want to freeze the macro to only display ONE category.

We do not want the user to be able to choose from all of our categories, we want to have it pre-selected for them.


author: AnnWorley
body: I found a workaround, albeit not ideal:

I put the spaces list macro on a page, inside the [Excerpt](https://confluence.atlassian.com/doc/excerpt-macro-148062.html) macro, and set it to category "team". Then I added the list to the page the users would see, using the [Excerpt Include Macro](https://confluence.atlassian.com/doc/excerpt-include-macro-148067.html). The menu to change the category is still visible but you cannot change it on the page with the Excerpt include, only on the Excerpt page.


author: Ben_Lee
body: Hi Ann,

I was attempting this workaround as you described but the 'View Spaces' dropdown doesn't lock. Users can still change the listing.

Moreover, it doesn't default to the space I've chosen on the Excerpt macro page for other users when viewing the Excerpt Include Macro page. They will see the whatever the first Category is in the list.

I've attempted to lock th Excerpt Macro page. I've also done it to the users page with the Excerpt Include.

Was there something else you did to lock the dropdown?


author: henning_tranberg
body: I realize this conversation is almost 6 years old, but I am facing the same problem and can confirm that the suggested workaround does not work at all - the user is still able to change the selected value in the Category picker in the included Excerpt.

Pretty disappointing that this is still not resolved :-(


Tags: category

macro