Scroll Versions compatibility with custom themes
We have two custom themes that we built ourselves:
1. The customer-facing theme for target spaces (the majority of spaces, so it's global).
2. A "master theme" for master spaces (~300).
Our problem is that our minority number of spaces (#2) are the ones where we need Versions compatibility, but we are getting the "This space is not compatible with Versions" error there.
We understand from https://help.k15t.com/scroll-versions/latest/scroll-versions-and-a-custom-theme-153653553.html that we can adjust the Scroll Platform configuration for the default theme. That takes care of our global theme for target spaces (which we don't need, but anyway).
We also understand that we can go through, on a space-by-space basis, and update each space's configuration with the {"isThemeCompatible": true} setting.
Our question: Is there any way at all to adjust our Master Theme to automatically tell Versions that it's compatible? Otherwise we have to do this configuration setting with 300 existing spaces and every single new space that takes on the Master Theme. I feel like we are missing something.
-
Hi Patrick,
would this be an option to automate the task with curl request? You could create a bash script that runs for 300 times each time changing the space key?
curl --header "Content-Type: application/json" -X POST --user username:password --data '{"pluginKey": "com.k15t.scroll.scroll-platform","key": "theme-integration.json", "value":"{\"isThemeCompatible\": true}"}' $base_url$/rest/scroll-runtime/latest/settings/$spaceKey$
Cheers,
Roman. -
Thanks, Roman. Yes, we understand that's an option for existing spaces. But even taking care of the 300, we will have to ask writers to perform an extra step for every new master space to tell Versions that the theme is compatible. We were hoping there was something we could build in to the theme itself. You've confirmed we aren't missing anything, though. Thanks.
Please sign in to leave a comment.
Comments
2 comments