Plasmic CMS integration

The Plasmic CMS integration lets you query your data from CMS directly using data queries. It provides dedicated functions for listing tables, fetching table content, and counting matching rows.

Note

This integration provides read-only access to your CMS data. To modify your CMS data, please use the CMS API combined with custom data queries.

Getting started

  1. In Page Data or Component Data, add a new data query and set a query name.
  2. Set Custom function to Fetch Plasmic CMS ....
  3. Create the data tokens for your CMS credentials (can be found in your Plasmic CMS settings)
  4. Fill the Cms ID and Cms public token fields with the corresponding data tokens you created.
  5. Fill the parameters from the table below based on the selected function.
  6. Execute and save the query.

Optionally, you can also fill the Host field with a custom CMS host URL, but for most users this needs to be left as the default.

Functions

Fetch Plasmic CMS Tables

Returns a list of tables in the CMS, along with their metadata such as field names and types.

Configure data query for Fetch Plasmic CMS Tables

Fetch Plasmic CMS Content

Returns items from a specified CMS table.

Configure data query for Fetch Plasmic CMS Content

Parameters

FieldDescriptionRequired?
Table IDCMS table/model to query.Required
SelectFields to return.Optional
Where logicFilters.Optional
Order byField to sort by.Optional
Order directionSort direction (Ascending or Descending).Optional
LimitMaximum number of records to return.Optional
OffsetNumber of records to skip.Optional
Use draftToggle to include draft records.Optional
LocaleLocale code for localized content.Optional

Fetch Plasmic CMS Count

Returns the number of items in a specified CMS table that match the optional filters.

Configure data query for Fetch Plasmic CMS Count

Parameters

FieldDescriptionRequired?
Table IDCMS table/model to count.Required
Where logicFilters.Optional
Use draftToggle to include draft records.Optional

Is this page helpful?

NoYes