Studio Library Publisher
Written By Luke Wakefield
Last updated About 5 hours ago
If you're wanting to create Libraries you can reuse across sites or even offer/sell to the Siteglide community you will need to use the Studio Library Publisher in Portal.
Soon, we’re planning on launching a new feature, allowing agencies to create plugins to “add-on” to existing Studio Libraries. Being able to commit to and iterate on a smaller set of high quality libraries is, we think, the best route. If you’re interested in helping us develop ideas for this, please reach out.
Start by creating your Library on a staging site
We’ve designed Studio so that sharing content should be just as easy as creating content. Follow any of the other docs in the Studio area as if you were building a site yourself and build a library out with sections, scripts and interchangeable themes.
Then it will be possible to share that as a published library.
Having said that, it’s worth putting a bit of extra time into polishing the code you write - when it becomes popular, any good practice or mistakes you make will be copied multiple times. Think about:
Accessibility and SEO best practice in sections
Make thoughtful use of fields, lists and settings in sections:
fields for content in a sensible hierarchical order
Settings for optional changes in functionality
lists for iterable content
Components for allowing users to add extra elements
As much as possible, CSS which controls style (colours, fonts, borders, border-radius, shadow, filters etc.) should be controlled as global element styles in the Theme Custom CSS / Variables. Whereas sections themselves should normally contain utility classes which handle the structure and positioning of elements. This allows interchangeable themes to truly shine as they can make a real impact on how any section looks.
Turn your Site Into a Site Template - Optional
If you wish to let people start from a pre-installed Site Template you still need to also add this to the Siteglide Marketplace as normal: Site Template Modules - and How to Make Your Own
Publishing your library so it can be installed from inside the Studio Module
Navigate to 'Studio Library Publisher' in Portal (you will likely not see any Libraries):

Click 'Create New Library' and fill in the details:

Select the Site where you've created the Library and Sections, these will then be available on other sites that have this Library installed.
It's important to set the correct Default Page Template and the name of the Library must match the Library name in the source Site (shown in CMS > Studio Libraries).