Hi,
Does anyone know if it is possible to create a link that will bring a user to the space directory and already have a specific category selected? I know there is a macro that can do this but that has to live on a page in a space. We would like to take users to the space directory page with some category already selected.
Thanks
I know this is an old question, but I recently found out how it works. Confluence uses local storage to keep track of which tab is selected when the page is opened. You can do something like the following in an HTML macro:
<a href="#" onclick="localStorage.setItem('lastSelectedSpaceDirectoryTab', '{\x22type\x22:\x22space-labels-list\x22,\x22tabName\x22:\x22space-category\x22}');window.location=contextPath+'/spacedirectory/view.action';">space-category</a>
and just replace the "space-category" with the space category you want.
How about:
https://<conf-host>/spacedirectory/view.action?selectedSpaceCategory=<category-name>
i took the link from the overview tab in "space tools" where you assign the space categories.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
This does not work for me ... is there a recommended way to do this; the space macro is useless; ..
Why won't something like this this work?
http://jira-host:8090/spacedirectory/view.action#space-search-result?data-tab-name="devops"
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You need to make sure that you change both texts where it says "space-category" (there is also one in the code between \x22) and you need to make sure that the name is completely in lower-case.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
my editor (addon html) keeps removing the onclick portion ...
guess I need to get that working first
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.