GenerateCloud is a premium plugin that allows you to create your own Pattern clouds.
Requirements
To create a cloud, you must have the following:
- A publically accessible WordPress website
- GenerateBlocks 1.9.0 or later, GenerateBlocks Pro 1.7.1 or later, and GenerateCloud installed
Creating a library
On our cloud website, the first thing we need to do is create our patterns. You can do this in “GenerateBlocks > Local” Patterns, or by clicking the 3 dots in your block toolbar and clicking “Create pattern”.
When we create patterns, we can put them into “Collections”. This allows you to organize each set of patterns into a separate collection. When creating our public key for our cloud, we can choose which collections are available in the key.
Creating a public key
Once we have a collection of patterns, we can create a public key.
To do so, go to “GenerateBlocks > Cloud” and click the “Create key” button.
Name
First, you’ll want to give this key a name. This is an internal name you can use to identify the key.
Key
The key itself is automatically generated for you. This is the key you will add to your “consumer” website that will use the provided patterns.
Provides
This is where we choose what this key provides. As of right now, a key can only provide patterns.
When we check the “Patterns” checkbox, more options will be available to us.
Pattern Library Name
This is the name of the Pattern Library that will show up as a tab in the Pattern Library modal on the consumer site.
Pattern Collections
This is where we can decide which collections will be available when using this key. We can include as many collections as want, and the patterns inside of those collections will be available inside of the Pattern Library on the consumer site.
Using the Cloud
Now that we’ve created a public key, we can begin using our Pattern Library on our websites.
On our consumer website, open the Pattern Library and click the + icon next to the available libraries.
Now go back to your key, and copy the Domain of your cloud.
Back in the Pattern Library, let’s paste that domain into the “Domain” field.
Note: I’m using my localhost as an example. It’s important that you use a publically available website to host your cloud. Using a localhost will only work if both the cloud and consumer are on the same localhost.
Next, let’s head back to our cloud site and copy the key.
Now let’s go paste that into the “Public Key” field in our Pattern Library.
We can now click the “Add” button, and it will add our new library to the Pattern Library.