Applying a theme to site search page

Thomas Berger July 2, 2017

We are using the default theme as the site default but have many spaces with individual themes and colors.

For example the 'red space' is utilizing a red theme and top bar. However when a user is entering the site search (/dosearchsite.action) the top bar is back to the site default blue.

Is there any way to customize the theme based on the space theme the search is initiated from?

Thanks!

1 answer

1 accepted

0 votes
Answer accepted
Nic Brough -Adaptavist-
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
July 3, 2017

No.  The user is outside a space at this point, so the system has no context to know what the theme is.  It has to use the global theme.

Thomas Berger July 3, 2017

Thanks Nic, that makes sense.

How about modifying the velocity template and add a group membership based condition?

E.g.

#if ($userAccessor.hasMembership("target-group", $remoteUser.name))
<style>
#header .aui-header {
  background-image: linear-gradient(to right, #9E043E, #F05A00); }
</style>
#end

Can't seem to find the correct template file...

Nic Brough -Adaptavist-
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
July 4, 2017

That should work, as you'll have a group context for the user!

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events