I got this one but i just want a certain group of spaces.
#foreach ($space in $spaceManager.getAllSpaces()) #if($space.getKey() == "TDS") <li><a href=$space.getUrlPath()>$space.getName()</a></li> #end #end
Community moderators have prevented the ability to post new answers.
#set($labelNames = ["label1", "label2", "label3"]) #foreach ($label in $labelManager.getTeamLabels()) #if($labelNames.indexOf($label.getName()) > -1) #foreach($space in $labelManager.getSpacesWithLabel($label)) <li><a href=$space.getUrlPath()>$space.getName()</a></li> #end #end #end
#set($group = ["TDS", "TDS2", "TDS3"]) #foreach ($space in $spaceManager.getAllSpaces()) #if($group.indexOf($space.getKey()) > -1) <li><a href=$space.getUrlPath()>$space.getName()</a></li> #end #end
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
thank you! your answers were very useful to figure out some things, at the end i did this.
#foreach ($space in $spaceManager.getAllSpaces()) #foreach($label in $space.getDescription().getLabels()) #if ($label == "ips_menu") <p>$space.getKey()</p> #end #end #end
Now the user just need to add a category to our spaces and they don't need to worry about code, that's what i wanted.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Ok it worked but what i'm looking for it's something that let the user create a new space with a category label which let me access them without changing my code each time a new space is created.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Community moderators have prevented the ability to post new answers.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.