Just a heads up: On March 24, 2025, starting at 4:30pm CDT / 21:30 UTC, the site will be undergoing scheduled maintenance for a few hours. During this time, the site might be unavailable for a short while. Thanks for your patience.
×Hi All!
I am using a user macro I found in this community to get a list of all spaces.
This is done e.g. by using
#set($spaces = $spaceManager.getAllSpaces())
Now I would like filter only for the global spaces, ignoring the personal user spaces.
I thought this would do the trick:
#set($spaces = $spaceManager.getSpacesByType(global))
But it does not :-( The macro will not run like this...
Does anyone have an idea?
I'm on the server version 7.13.8
probably my fault...I found it here:
But it seems to be deprecated.
Instead one should use getSpaces(SpacesQuery query) but I don't get it working
Hello @C_ G_ , what happens when you try .getSpacesByType? I don;t see that method in the docs.
Do you get an array from .getAllSpaces() that you can then filter?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.