We are using Confluence for our technical documentation and refinedwiki Original Theme Plugin to customize the design. Documentation is available in two languages (German, English). Spaces are organized as follows:
Space: "Product 1 - DE"
Space: "Product 2 - DE"
Space: "Product 1 - EN"
Space: "Product 2 - EN"
In the site header, I'd like to place links to Product 1 Home, Product 2 Home, ... in current language. (I try to modify the site header using the textbox provided by OriginalTheme > Manage custom design.)
If the current page is in a space that has category "German":
Link: "Product 1" => Space "Product 1 - DE" - Home
Link: "Product 1" => Space "Product 1 - EN" - Home
I understand that I can use Velocity functions so a simple if should do the job if I could get information about the current space.
How can I access the category of current space?
thanks for your reply. Here's the answer from refinedwiki team.
#if ($sitemeshPage.getProperty("page.spacekey")) #set($spaceInfoBean = OriginalThemeHelper.getSpaceInfoBean($sitemeshPage.getProperty("page.spacekey"))) $spaceInfoBean.categoryNameKey #end
This is not an official API so I assume it might change in future releases.
PS: Thumbs up for refinedwiki support team. Fast an qualified answer. Great ;-)
Badges are a great way to show off community activity, whether you’re a newbie or a Champion.Learn more
An efficient enterprise content management system, or ECM, is a must-have for companies that create work online (cough cough, all companies). If content calendars, marketing plans, and bu...
Connect with like-minded Atlassian users at free events near you!Find a group
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no AUG chapters near you at the moment.Start an AUG
You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs