This page is a work in progress, tests needed. Silex is free/libre software which means you need to contribute.
This tutorial is very long but it should work fine if you follow each step. If you would like us to develop a WordPress plugin that makes it a little easier, you can vote for this feature here
You may want to check this video too, it is an other attempt to document the WordPress integration
By the end of this tutorial, you will have a WordPress backend to edit your website. The frontend will be designed with Silex drag and drop interface and it will be hosted on GitLab pages for free.
Requirements: you need **a regular WordPress website. Local WordPress (development) will not work because Silex and GitLab will not be able to access it.
This guide includes all the setup necessary to make your WordPress ready for Silex. We will install a number of plugins such as SCF (ex-ACF)
Feel free to ask in the chat or forums if you need explanations about why this step or that action
Let's start from your WordPress admin, click on "add new plugin" from the "plugin" tab.
Fill "Secure Custom Fields."
Initiate the installation process.
Activate the plugin.
Let's add another plugin.
Enter "WPGraphQL" in the search field.
Initiate the installation process.
Activate the plugin.
Add a new plugin.
Fill in the search box with "WPGraphQL ACF."
Initiate the installation process.
Activate the plugin.
Access the settings.
Set the GraphQL API endpoint.
Select "Enable Public Introspection."
Save the changes made.
Switch to "v3.silex.me."
Access Silex with your GitLab account.
Say hi to the dashboard, create a new empty site.
Access the CMS settings for the website
Click on the "Add data source" button.
Enter information in the field that was the value "Endpoint."
Make sure that this does not display any error.
Apply the changes.
Add a text to your site.
Drag a text to the canvas.
Open the settings of the new text block.
Add an expression in the loop field.
When you will publish your site, it will duplicate the text field, one per page in WordPress.
The "{ }" next to "Pages" means it is an object, not an array.
The "[ ]" next to "nodes" means it is an array of pages. You can loop on that.
When you publish your site, it will duplicate the text field, one per page in WordPress.
This will make the content of the text field an expression. When you publish your site, the text content will be replaced by the expression you select.
Loop data is the one page that the text field represents.
The pages have a title, so you can make the text field display the page title.
When you publish your site, the text content will be replaced by the page title.
Publish the changes.
Select GitLab to publish to GitLab pages hosting (free and good quality).
Publish the website. Wait 30 seconds.
Access the live website link.
Here is your website, with one text field for the one page that WordPress has by default.
Copy the URL of your website for later use (the address in the address bar).
Now you probably want to