Live
Publish to Directus
Items in any collection, with file uploads and a configurable status field.
- Connects via
- Directus REST API with a static access token
- Lands as
- Items of a collection (default posts)
- Tested
- Against a real instance and automated API tests
What syncs
What Optimizly writes
- All mapped fields via a configurable field map
- Body as HTML or Markdown
- Featured image uploaded to Files and linked
- Configurable status field (published / draft)
- Create, update and delete
Limitations
Good to know
- Items that are not yet published in Optimizly, or targets with publishing switched off, are saved as drafts.
Setup
Connect Directus
- In the User Directory open a (service) user, generate a static token and save.
- Its role/policy needs create, read, update and delete on the collection and create on directus_files.
- In Optimizly add a Directus target with the Directus URL, token, collection and status field.
- Optional: adjust the field map (logical field → your CMS field; dotted paths write into components such as seo.metaTitle, an empty value skips a field) and a URL pattern such as https://example.com/blog/{slug}.
- In Optimizly: Publishing → Add target → choose the platform, paste the credentials and click Test connection. Credentials are stored encrypted.
Publish your next article to Directus.
Start a free trial, add your site as publishing target and test the connection.