Integrating Optimizely CMP Assets into an Existing Document Listing Page
Integrating Optimizely CMP Assets into an Existing Document Listing Page
In some projects, there may be a requirement to retrieve assets from Optimizely CMP and display them alongside existing content on the website.
Scenario
Consider an existing Document Listing page where all documents are managed in Optimizely CMS and indexed through Episerver Search & Navigation (Find). A new requirement is introduced to display assets stored in Optimizely CMP within the same listing page, together with CMS documents.
Available Options for Retrieving CMP Assets
1. Optimizely CMP Graph API
https://cg.optimizely.com/app/graphiql?auth={singlekey}
2. Optimizely CMP Open REST API
https://developers.welcomesoftware.com/openapi.html
Proposed Solution
Implement a dedicated CMP API Service responsible for retrieving assets from Optimizely CMP. The service should:
- Fetch asset data using either the CMP Graph API or Open REST API.
- Map CMP asset data to a common document model already used by the existing Document Listing page.
- Merge CMP assets and Optimizely CMS documents into a unified collection.
- Apply existing filtering, sorting, and pagination logic consistently across both content sources.
- Render the combined results on the same listing page without requiring significant changes to the front-end implementation.
This approach allows the existing listing page to support content from multiple sources while maintaining a consistent user experience and minimizing changes to the current architecture.
Comments