cancel
Showing results for 
Search instead for 
Did you mean: 

Setting a Site Theme programatically

kbonnet
Champ in-the-making
Champ in-the-making
I'm creating 300 sites for projects and they are based on my own preset/site template. We're using Alfresco Community 4 which has introduced the possibility to set a theme per site. I would like to apply a custom theme to my project sites, either as part of the site preset (preferably) or via scripting afterwards.

Does anyone know if i can specify a site theme in the preset?

Thanks for you help!

Koen
1 REPLY 1

davidcognite
Star Contributor
Star Contributor
Hello,

To be honest, I don't know if you can set the theme via a preset - it's not a part of Share I've delved into yet.

However, I do know (because this is how Share does it) that you can set the site theme via a POST request to:
http://example.com/share/service/components/site/customise-pages
with a content of:
{
"siteId":"12345",
"pages":[{"pageId":"documentlibrary"}],
"themeId":"yellowTheme"
}

Hope that helps,
Getting started

Tags


Find what you came for

We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.