You can easily integrate data from Experro’s Content Library into your custom component.To integrate data from the Content Library into your custom component, the first step is to add the below code to the configObj in your widget file.
You can find the Model internal name of your component in the Experro admin panel when you create a component.Afterwards, you will see a popup on the sidebar where you can select the record for that particular component.When you select a record, you will get the value of that record in the props of your component as contentModel. The value will be an object, and you can access it by the following method:
Once you have received this object, you need to import the ContentService from the experro-Storefront npm package.The ContentService provides a function called getCollectionTypeContentById, which should be used to retrieve data from Experro’s content library.Here’s an example of how you can use the getCollectionTypeContentById function from the ContentService:
The id and versionId are obtained from the contentModel object, while the modelName represents the model internal name for the component.
Note: The componentId and ssrKey are random keys that should be unique.
To explore more, you can also use ExpComponentDataDispatcher to integrate the Experro’s content library data easily.Or if you want to discover how to use Droppable Widgets, you can click the link.
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Experro","colors":{"primary":"#4F46E5","light":"#42A5F5","dark":"#818CF8"},"logo":{"light":"https://mintcdn.com/experro/hT4c11DxPL1gRWmf/logo/experro_doc_light.svg?fit=max\u0026auto=format\u0026n=hT4c11DxPL1gRWmf\u0026q=85\u0026s=af188f3ceb4443880665587c1fa81b98","dark":"https://mintcdn.com/experro/hT4c11DxPL1gRWmf/logo/experro_doc_dark.svg?fit=max\u0026auto=format\u0026n=hT4c11DxPL1gRWmf\u0026q=85\u0026s=85dd66896402d5755c62eeac93ae626b","href":"https://www.experro.com/"},"favicon":"https://mintcdn.com/experro/RYBbduMrHwzBglNX/favicon.svg?fit=max\u0026auto=format\u0026n=RYBbduMrHwzBglNX\u0026q=85\u0026s=48efb1fa14a242b5429da66897a870ae","api":{"playground":{"proxy":false}},"navbar":{"links":[{"href":"https://www.experro.com/contact-us/","label":"Support"}],"primary":{"type":"button","label":"Login to Experro","href":"https://admin.experro.app/login"}},"footer":{"socials":{"facebook":"https://www.facebook.com/ExperroDXP","instagram":"https://www.instagram.com/experrodxp","linkedin":"https://www.linkedin.com/company/experro","x":"https://twitter.com/ExperroDxp"}},"seo":{"metatags":{"robots":"index, follow","og:site_name":"Experro"}},"styling":{"latex":true},"navigation":{"global":{"anchors":[{"anchor":"Website","icon":"globe","href":"https://www.experro.com/"},{"anchor":"Case Studies","icon":"book","href":"https://www.experro.com/case-studies/"},{"anchor":"Blog","icon":"blog","href":"https://www.experro.com/blog/"}]},"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"experro","hasAudioNarration":false,"actualSubdomain":"experro","customDomains":["help.experro.com"],"gitSource":{"type":"github","owner":"minank-m","repo":"docs","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"chroma":{"liveDeploymentHistoryId":"6a8800c015658567f4df3cdb","collectionId":"5efa32d8-5f03-4cd2-b5de-2c8b0cb1e1e9","schemaVersion":"v3","latestBuiltDeploymentHistoryId":"6a8800c015658567f4df3cdb"},"feedback":{"thumbs":false},"entitlements":{},"buildId":"6a8800c015658567f4df3cdb:success","clientVersion":"0.0.3964","searchFilterCounts":[{"language":"default","tag":"Discovery","count":120},{"language":"default","tag":"Using Discovery Dashboard","count":58},{"language":"default","tag":"Theme Development","count":52},{"language":"default","tag":"Content","count":39},{"language":"default","tag":"API Reference","count":30},{"language":"default","tag":"Platform Settings","count":26},{"language":"default","tag":"Experro Discovery","count":24},{"language":"default","tag":"Getting Started","count":23},{"language":"default","tag":"Experiments","count":23},{"language":"default","tag":"Plug \u0026 Play Integration","count":23}]},"assistantConfig":{},"hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-v7-file-tree","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"pause-universal-search-reconcile","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"per-site-search-delta","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-private-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-nav-generations","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"byok-sep-25","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"vite-origin","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-agent-model-picker","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-updated-9-15","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"isAtlas":false,"googleFontsInlined":false},"customCss":[],"page":{"pagePath":"theme-development/theme-components/custom-components-with-content-library","slug":"/theme-development/theme-components/custom-components-with-content-library","pageMetadata":{"stoplight-id":"cl5uewv7vcmye","title":null,"description":null,"href":"/theme-development/theme-components/custom-components-with-content-library"},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,em:`em`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,..._provideComponents(),...props.components},{CodeBlock,Info}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Info)_missingMdxReference(`Info`,true);return _jsxs(_Fragment,{children:[_jsxs(_components.p,{children:[`You can easily integrate data from `,_jsx(_components.strong,{children:`Experro’s Content Library`}),` into your custom component.`]}),`\n`,_jsxs(_components.p,{children:[`To integrate data from the Content Library into your custom component, the first step is to add the below code to the `,_jsx(_components.code,{children:`configObj`}),` in your widget file.`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`9`,language:`javascript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`javascript`,children:_jsxs(_components.code,{language:`javascript`,numberOfLines:`9`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` configObj`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` modelInternalName:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'your_component_model_internal_name'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` traitConfig:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` [`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` type:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'exp_contentModalPopUp'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` modelInternalName:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'your_component_model_internal_name'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` ]`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsx(_components.p,{children:`You can find the Model internal name of your component in the Experro admin panel when you create a component.`}),`\n`,_jsx(_components.p,{children:`Afterwards, you will see a popup on the sidebar where you can select the record for that particular component.`}),`\n`,_jsxs(_components.p,{children:[`When you select a record, you will get the value of that record in the props of your component as `,_jsx(_components.strong,{children:`contentModel`}),`. The value will be an object, and you can access it by the following method:`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`10`,language:`javascript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`javascript`,children:_jsxs(_components.code,{language:`javascript`,numberOfLines:`10`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#C8C8C8`},children:` PRODUCTION6e3bab01edcd4771ad05203ed79042d69xdt10du_published_version_id`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"baaf3cdb-f462-40d8-93f6-41e720b7f8e9-8\"`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#C8C8C8`},children:` content_model_id`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"a2285cb8-fa8b-4fcb-83f8-c72c164040bd\"`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#C8C8C8`},children:` content_model_name`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Zigzag Layout\"`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#C8C8C8`},children:` current_version_id`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"baaf3cdb-f462-40d8-93f6-41e720b7f8e9-8\"`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#C8C8C8`},children:` current_version_name`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"#8\"`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#C8C8C8`},children:` id`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"baaf3cdb-f462-40d8-93f6-41e720b7f8e9\"`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#C8C8C8`},children:` published_version_name`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"#8\"`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#C8C8C8`},children:` title`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Lorem ipsum\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[`Once you have received this object, you need to import the `,_jsx(_components.strong,{children:`ContentService`}),` from the experro-Storefront npm package.`]}),`\n`,_jsxs(_components.p,{children:[`The ContentService provides a function called `,_jsx(_components.strong,{children:`getCollectionTypeContentById`}),`, which should be used to retrieve data from Experro’s content library.`]}),`\n`,_jsxs(_components.p,{children:[`Here’s an example of how you can use the `,_jsx(_components.strong,{children:`getCollectionTypeContentById`}),` function from the ContentService:`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`8`,language:`javascript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`javascript`,children:_jsxs(_components.code,{language:`javascript`,numberOfLines:`8`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` await`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` ContentService`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`getCollectionTypeContentById`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`({`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` id:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'id'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` versionId:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'current_version_id'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` modelName:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'model_internal_name'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` componentId:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'random_keu'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` ssrKey:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:\" `random_id_for_ssr`\"}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` enableSSR:`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` true`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`});`})}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[`The `,_jsx(_components.strong,{children:`id`}),` and `,_jsx(_components.strong,{children:`versionId`}),` are obtained from the `,_jsx(_components.strong,{children:`contentModel`}),` object, while the `,_jsx(_components.strong,{children:`modelName`}),` represents the `,_jsx(_components.strong,{children:`model internal name`}),` for the component.`]}),`\n`,_jsx(Info,{children:_jsxs(_components.p,{children:[_jsx(_components.em,{children:`Note:`}),` The `,_jsx(_components.strong,{children:`componentId`}),` and `,_jsx(_components.strong,{children:`ssrKey`}),` are random keys that should be unique.`]})}),`\n`,_jsxs(_components.p,{children:[`To explore more, you can also use `,_jsx(_components.a,{href:`/theme-development/other/theme-utilities`,children:`ExpComponentDataDispatcher`}),` to integrate the Experro’s content library data easily.`]}),`\n`,_jsxs(_components.p,{children:[`Or if you want to discover how to use `,_jsx(_components.a,{href:`/theme-development/theme-components/droppable-widgets`,children:`Droppable Widgets`}),`, you can click the link.`]})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"stoplight-id":"cl5uewv7vcmye","title":null,"description":null,"href":"/theme-development/theme-components/custom-components-with-content-library"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":[],"subdomain":"experro","siteName":"Experro","title":"Custom components with content library - Experro","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-08-21T07:41:20.693Z","originalFileLocation":"theme-development/theme-components/custom-components-with-content-library.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"application-name\" content=\"Experro\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003cmeta data-mint-head name=\"robots\" content=\"index, follow\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/experro/EfqvK4Hw2eIKGGc4/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/experro/EfqvK4Hw2eIKGGc4/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/experro/EfqvK4Hw2eIKGGc4/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/experro/EfqvK4Hw2eIKGGc4/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/experro/EfqvK4Hw2eIKGGc4/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/experro/EfqvK4Hw2eIKGGc4/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/experro/EfqvK4Hw2eIKGGc4/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/experro/EfqvK4Hw2eIKGGc4/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/experro/EfqvK4Hw2eIKGGc4/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Custom components with content library - Experro\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Experro\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://help.experro.com/theme-development/theme-components/custom-components-with-content-library\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://experro.mintlify.app/_mintlify/api/og/v2?division=Theme+Components\u0026amp;title=Custom+components+with+content+library\u0026amp;theme=534f443bc521ea58c43c30f0\u0026amp;signature=1cbd99d8c4f3e7b6af423fecd9eb08a7075786088d051acfc1934a95a06e103a\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Custom components with content library - Experro\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://experro.mintlify.app/_mintlify/api/og/v2?division=Theme+Components\u0026amp;title=Custom+components+with+content+library\u0026amp;theme=534f443bc521ea58c43c30f0\u0026amp;signature=1cbd99d8c4f3e7b6af423fecd9eb08a7075786088d051acfc1934a95a06e103a\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/experro/EfqvK4Hw2eIKGGc4/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Experro\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#4F46E5\">\u003clink data-mint-head rel=\"canonical\" href=\"https://help.experro.com/theme-development/theme-components/custom-components-with-content-library\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/theme-development/theme-components/custom-components-with-content-library.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://help.experro.com/#organization\",\"name\":\"Experro\",\"url\":\"https://help.experro.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/experro/hT4c11DxPL1gRWmf/logo/experro_doc_light.svg?fit=max\u0026auto=format\u0026n=hT4c11DxPL1gRWmf\u0026q=85\u0026s=af188f3ceb4443880665587c1fa81b98\"}},{\"@type\":\"WebSite\",\"@id\":\"https://help.experro.com#website\",\"name\":\"Experro\",\"url\":\"https://help.experro.com\",\"publisher\":{\"@id\":\"https://help.experro.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://help.experro.com/theme-development/theme-components/custom-components-with-content-library#webpage\",\"url\":\"https://help.experro.com/theme-development/theme-components/custom-components-with-content-library\",\"name\":\"Custom components with content library\",\"dateModified\":\"2026-08-21T07:41:20.693Z\",\"isPartOf\":{\"@id\":\"https://help.experro.com#website\"},\"breadcrumb\":{\"@id\":\"https://help.experro.com/theme-development/theme-components/custom-components-with-content-library#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://help.experro.com/theme-development/theme-components/custom-components-with-content-library#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Theme Components\",\"item\":\"https://help.experro.com/theme-development/theme-components/about-components\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Custom components with content library\",\"item\":\"https://help.experro.com/theme-development/theme-components/custom-components-with-content-library\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://help.experro.com/theme-development/theme-components/custom-components-with-content-library#article\",\"headline\":\"Custom components with content library\",\"name\":\"Custom components with content library\",\"url\":\"https://help.experro.com/theme-development/theme-components/custom-components-with-content-library\",\"mainEntityOfPage\":{\"@id\":\"https://help.experro.com/theme-development/theme-components/custom-components-with-content-library#webpage\"},\"dateModified\":\"2026-08-21T07:41:20.693Z\",\"publisher\":{\"@id\":\"https://help.experro.com/#organization\"},\"isPartOf\":{\"@id\":\"https://help.experro.com#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Experro\",\"creator\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","siteName":"Experro","nav":{"global":{"anchors":[{"anchor":"Website","icon":"globe","href":"https://www.experro.com/"},{"anchor":"Case Studies","icon":"book","href":"https://www.experro.com/case-studies/"},{"anchor":"Blog","icon":"blog","href":"https://www.experro.com/blog/"}]},"tabs":[{"tab":"Discovery","groups":[{"group":"The Proof of Value","pages":[{"title":"Experro POV Overview","icon":"grid-2","href":"/proof_of_value/pov_overview"},{"group":"Pixel / Analytics SDK","icon":"code","pages":[{"title":"Overview","href":"/proof_of_value/pixel_overview"},{"title":"Load the Analytics SDK","href":"/proof_of_value/load_sdk"},{"title":"Script Injection","href":"/proof_of_value/load_sdk_direct"},{"title":"Google Tag Manager (GTM)","href":"/proof_of_value/load_sdk_gtm"},{"title":"FAQs","href":"/proof_of_value/faq"}]}]},{"group":"Experro Discovery","pages":[{"title":"Introduction","icon":"compass","href":"/discovery_suite/discovery_introduction"},{"title":"Discovery Suite","icon":"rocket","href":"/discovery_suite/overview"},{"title":"KPI Optimization ","icon":"gauge-high","href":"/discovery_suite/business_value_kpi_optimization"},{"title":"Our Engine","icon":"gear","href":"/discovery_suite/our_platform"},{"group":"Gen AI Search","icon":"magnifying-glass","pages":[{"title":"Overview","href":"/discovery_suite/search/overview"},{"group":"Core Concepts","pages":[{"title":"Semantic vs Keyword Search","href":"/discovery_suite/search/core_concepts/semantic_vs_keyword"},{"title":"Natural Language Processing","href":"/discovery_suite/search/core_concepts/nlp"}]},{"title":"How Experro Search Works","href":"/discovery_suite/search/how_experro_search_works"},{"title":"Results Ranking","href":"/discovery_suite/search/results_ranking"},{"title":"Get the most out of Search","href":"/discovery_suite/search/get_most_out_of_search"}]},{"group":"AI Merchandising","icon":"microchip","pages":[{"title":"What is Experro Merchandising?","href":"/discovery_suite/ai_merchandising/what_is_merchandising"}]},{"group":"Recommendations","icon":"thumbs-up","pages":[{"title":"Overview","href":"/discovery_suite/recommendations/overview"},{"title":"Recommendation Examples","href":"/discovery_suite/recommendations/reco_examples"},{"title":"Get the most out of Recommendations","href":"/discovery_suite/recommendations/get_most_out_of_recos"}]},{"title":"Merchant Intelligence","icon":"chart-simple","href":"/discovery_suite/merchant_intelligence"},{"group":"Collections","icon":"layer-group","pages":[{"title":"Overview","href":"/discovery_suite/collections/overview"},{"title":"Get the most out of Collections","href":"/discovery_suite/collections/get_most_out_of_collections"}]},{"group":"Banners","icon":"megaphone","pages":[{"title":"Overview","href":"/discovery_suite/banners/overview"},{"title":"Get the most out of Banners","href":"/discovery_suite/banners/get_most_out_of_banners"}]},{"group":"Autocomplete","icon":"wand-magic","pages":[{"title":"Overview","href":"/discovery_suite/autocomplete/overview"},{"title":"Autocomplete in Action","href":"/discovery_suite/autocomplete/autocomplete_in_action"},{"title":"Get the most out of Autocomplete","href":"/discovery_suite/autocomplete/get_most_out_of_autocomplete"}]},{"title":"Facets","icon":"filter","href":"/discovery_suite/facets"},{"title":"Putting it all together","icon":"puzzle-piece","href":"/discovery_suite/putting_it_all_together/overview"}]},{"group":"Using Discovery Dashboard","pages":[{"title":"Navigating Discovery Dashboard","icon":"compass","href":"/experro_discovery/discovery_dashboard_interface"},{"group":"Discovery Use Cases","icon":"book","pages":[{"title":"Overview","href":"/experro_discovery/discovery_usecases/overview"},{"title":"Merchandising","href":"/experro_discovery/discovery_usecases/merchandising"},{"title":"Search","href":"/experro_discovery/discovery_usecases/search"},{"title":"Facets","href":"/experro_discovery/discovery_usecases/facets"},{"title":"Insights \u0026 Analytics","href":"/experro_discovery/discovery_usecases/insights_and_analytics"}]},{"group":"Search","icon":"magnifying-glass","pages":[{"title":"Overview","href":"/experro_discovery/search/overview"},{"title":"Autocomplete","href":"/experro_discovery/search/autocomplete"},{"title":"Search Redirects","href":"/experro_discovery/search/search_redirects"},{"title":"Synonyms","href":"/experro_discovery/search/synonyms"},{"title":"Phrases","href":"/experro_discovery/search/phrases"},{"title":"Dictionaries","href":"/experro_discovery/search/dictionaries"},{"group":"Algorithm, Field Settings \u0026 Catalog Settings","pages":[{"title":"Overview","href":"/experro_discovery/search/algorithm_field_settings_catalog_settings/overview"},{"title":"Algorithm","href":"/experro_discovery/search/algorithm_field_settings_catalog_settings/algorithm"},{"title":"Field Settings","href":"/experro_discovery/search/algorithm_field_settings_catalog_settings/field_settings"},{"title":"Catalog Settings","href":"/experro_discovery/search/algorithm_field_settings_catalog_settings/catalog_settings"},{"title":"Quick Decision Guide","href":"/experro_discovery/search/algorithm_field_settings_catalog_settings/quick_decision_guide"}]},{"title":"Search Preview","href":"/experro_discovery/search/search_preview"}]},{"group":"AI Merchandising","icon":"microchip","pages":[{"title":"Rules","href":"/experro_discovery/merchandising/rules"},{"title":"Scope of Rules","href":"/experro_discovery/merchandising/scope_of_rules"},{"title":"Configuring Rules","href":"/experro_discovery/merchandising/configuring_rules"},{"group":"Types of Rules","pages":[{"title":"Overview","href":"/experro_discovery/merchandising/rule_types/types_of_rules"},{"title":"Boost/Bury Rule","href":"/experro_discovery/merchandising/rule_types/boost_bury"},{"title":"Include/Exclude Rule","href":"/experro_discovery/merchandising/rule_types/exclude_include"},{"title":"Pin Rule","href":"/experro_discovery/merchandising/rule_types/pin"},{"title":"Variant Slicing Rule","href":"/experro_discovery/merchandising/rule_types/variant_slicing"},{"title":"Slot Rule","href":"/experro_discovery/merchandising/rule_types/slot"},{"title":"Sort Rule","href":"/experro_discovery/merchandising/rule_types/sort"},{"title":"Banner Rule","href":"/experro_discovery/merchandising/rule_types/banner_rule"}]},{"title":"Action on Rules","href":"/experro_discovery/merchandising/action_on_rules"},{"title":"Creating a New Variant","href":"/experro_discovery/merchandising/creating_a_new_variant"},{"title":"Field-Based Rule Conditions","href":"/experro_discovery/merchandising/field_based_rule_condition"}]},{"group":"Recommendations","icon":"thumbs-up","pages":[{"title":"Overview","href":"/experro_discovery/recommendations/overview"},{"title":"Create Widgets","href":"/experro_discovery/recommendations/create_widgets"},{"title":"Publishing Widgets on Storefront","href":"/experro_discovery/recommendations/mapping_widgets_to_storefront"},{"group":"Recommendation Algorithms","pages":[{"title":"Recommended For You","href":"/experro_discovery/recommendations/recommendation_algorithms/recommended_for_you"},{"title":"Frequently Bought Together","href":"/experro_discovery/recommendations/recommendation_algorithms/frequently_bought_together"},{"title":"Frequently Viewed Together","href":"/experro_discovery/recommendations/recommendation_algorithms/frequently_viewed_together"},{"title":"Similar Products","href":"/experro_discovery/recommendations/recommendation_algorithms/similar_products"},{"title":"Popular Products","href":"/experro_discovery/recommendations/recommendation_algorithms/popular_products"},{"title":"Hot New Releases","href":"/experro_discovery/recommendations/recommendation_algorithms/hot_new_releases"},{"title":"Best Seller","href":"/experro_discovery/recommendations/recommendation_algorithms/best_seller"},{"title":"Recently Purchased","href":"/experro_discovery/recommendations/recommendation_algorithms/recently_purchased"},{"title":"Recently Viewed","href":"/experro_discovery/recommendations/recommendation_algorithms/recently_viewed"},{"title":"Pick-up Where You Left Off","href":"/experro_discovery/recommendations/recommendation_algorithms/pick_up_where_you_left_off"},{"title":"Inspired by Your Browsing History","href":"/experro_discovery/recommendations/recommendation_algorithms/inspired_by_your_browsing_history"},{"title":"Query-Based Recommendations","href":"/experro_discovery/recommendations/recommendation_algorithms/query_based"}]},{"title":"Configure Algorithm","href":"/experro_discovery/recommendations/configure_algorithm"},{"title":"Recommendations Analytics","href":"/experro_discovery/recommendations/analytics"}]},{"group":"Facets","icon":"filter","pages":[{"title":"Create and Manage Facet Rules","href":"/experro_discovery/facets/create_and_manage_facet_rules"},{"title":"Configure Facet Appearance","href":"/experro_discovery/facets/configure_facet_appearance"},{"title":"Manage Facet Values","href":"/experro_discovery/facets/manage_facet_values"}]},{"title":"Collections","icon":"layer-group","href":"/experro_discovery/collections"},{"title":"Banners","icon":"megaphone","href":"/experro_discovery/banners"},{"group":"Insights \u0026 Analytics","icon":"chart-simple","pages":[{"title":"Overview","href":"/experro_discovery/insights_and_analytics/overview"},{"title":"Opportunities","href":"/experro_discovery/insights_and_analytics/opportunities"},{"title":"Analytics","href":"/experro_discovery/insights_and_analytics/analytics"}]},{"title":"Glossary","icon":"lightbulb","href":"/experro_discovery/glossary"}]},{"group":"Experro Analytics","pages":[{"title":"Analytics Overview","href":"/experro_analytics/analytics_overview"},{"title":"Opportunities","href":"/experro_analytics/opportunities"},{"title":"Search","href":"/experro_analytics/search"},{"title":"Categories","href":"/experro_analytics/categories"},{"title":"Autocomplete","href":"/experro_analytics/autocomplete"},{"title":"Facets","href":"/experro_analytics/facets"},{"title":"Collections","href":"/experro_analytics/collections"},{"title":"Products","href":"/experro_analytics/products"},{"title":"Source","href":"/experro_analytics/source"}]},{"group":"Plug \u0026 Play Integration","pages":[{"title":"What is Experro Plug \u0026 Play?","icon":"plug","href":"/plug_and_play/overview"},{"group":"Shopify Integration","icon":"link","pages":[{"title":"Overview","href":"/plug_and_play/shopify_integration/overview"},{"title":"Connect your store","href":"/plug_and_play/shopify_integration/connect_your_store"},{"title":"UI Customisation","href":"/plug_and_play/shopify_integration/ui_customisation"},{"title":"Theme Integration","href":"/plug_and_play/shopify_integration/theme_integration"},{"title":"Recommendation Widget","href":"/plug_and_play/shopify_integration/recommendation_widget"}]},{"group":"BigCommerce Integration","icon":"link","pages":[{"title":"Overview","href":"/plug_and_play/bigcommerce_integration/overview"},{"title":"Connect your store","href":"/plug_and_play/bigcommerce_integration/connect_your_store"},{"title":"UI Customisation","href":"/plug_and_play/bigcommerce_integration/ui_customisation"},{"title":"Theme Integration","href":"/plug_and_play/bigcommerce_integration/theme_integration"}]},{"group":"Magento Integration","icon":"link","pages":[{"title":"Overview","href":"/plug_and_play/magento_integration/overview"},{"title":"Connect your store","href":"/plug_and_play/magento_integration/store_integration"},{"title":"Theme Integration","href":"/plug_and_play/magento_integration/theme_integration"}]},{"group":"UI Customization","icon":"palette","pages":[{"title":"Overview","href":"/plug_and_play/ui_customisation/overview"},{"title":"Theme","href":"/plug_and_play/ui_customisation/theme"},{"title":"Layout","href":"/plug_and_play/ui_customisation/layout"},{"title":"Search Results","href":"/plug_and_play/ui_customisation/search_results"},{"title":"Autocomplete","href":"/plug_and_play/ui_customisation/autocomplete"},{"title":"Custom CSS \u0026 JS","href":"/plug_and_play/ui_customisation/css_and_js"},{"title":"Translations","href":"/plug_and_play/ui_customisation/translations"}]},{"title":"Advanced UI Settings","icon":"sliders","href":"/plug_and_play/css_customisation"},{"title":"Using Experro Discovery","icon":"plug-circle-check","href":"/plug_and_play/using_experro_discovery"},{"title":"FAQs","icon":"lightbulb","href":"/plug_and_play/faq"}]},{"group":"Analytics SDK","pages":[{"title":"Overview","icon":"circle-info","href":"/analytics_sdk/overview"},{"title":"Installation","icon":"download","href":"/analytics_sdk/installation"},{"title":"Manual Event Logging","icon":"code","href":"/analytics_sdk/manual_events"},{"group":"Built-in Events","icon":"bolt","pages":[{"title":"Products Searched","href":"/analytics_sdk/builtin_events/products_searched"},{"title":"Autocomplete Impressions","href":"/analytics_sdk/builtin_events/ac_impressions"},{"title":"Autocomplete Clicks","href":"/analytics_sdk/builtin_events/ac_click"},{"title":"Category Viewed","href":"/analytics_sdk/builtin_events/category_viewed"},{"title":"Collection Viewed","href":"/analytics_sdk/builtin_events/collection_viewed"},{"title":"Widget Viewed","href":"/analytics_sdk/builtin_events/widget_viewed"},{"title":"Product Viewed","href":"/analytics_sdk/builtin_events/product_viewed"},{"title":"Product Variant Viewed","href":"/analytics_sdk/builtin_events/product_variant_viewed"},{"title":"Product Added to Cart","href":"/analytics_sdk/builtin_events/product_add_to_cart"},{"title":"Product Removed from Cart","href":"/analytics_sdk/builtin_events/product_remove_from_cart"},{"title":"Cart Viewed","href":"/analytics_sdk/builtin_events/cart_viewed"},{"title":"Checkout Initiated","href":"/analytics_sdk/builtin_events/checkout_initiated"},{"title":"Checkout Completed","href":"/analytics_sdk/builtin_events/checkout_completed"},{"title":"Authentication Events","href":"/analytics_sdk/builtin_events/auth_events"}]}]}]},{"tab":"Content","groups":[{"group":"Getting Started","pages":[{"title":"Introduction","href":"/content/getting_started/introduction"},{"title":"Getting Started","href":"/content/getting_started/login"},{"title":null,"href":"/content/getting_started/key_concepts"}]},{"group":"Insights","pages":[{"title":null,"href":"/content/insights/home_widgets"},{"group":"Dashboards","pages":[{"title":"CMS","href":"/content/insights/dashboards/cms"},{"title":"Orders","href":"/content/insights/dashboards/orders"},{"title":"Products","href":"/content/insights/dashboards/products"},{"title":"Customers","href":"/content/insights/dashboards/customers"}]}]},{"group":"Content Model","pages":[{"title":"Basics of Content Modeling","href":"/content/content_model/basics_of_content_modeling"},{"title":"Create a Content Model","href":"/content/content_model/create_a_content_model"},{"title":"Single vs. Multi Entry Models","href":"/content/content_model/single_entry_vs_multi_entry_models"},{"group":"Fields","pages":[{"title":"Adding Fields to Your Model","href":"/content/content_model/fields/add_fields"},{"title":null,"href":"/content/content_model/fields/textual_fields"},{"title":null,"href":"/content/content_model/fields/media_fields"},{"title":"Choice \u0026 Relation Fields","href":"/content/content_model/fields/choice_relation_fields"},{"title":"Number \u0026 Date Fields","href":"/content/content_model/fields/number_date_fields"},{"title":"Advanced \u0026 Layout Fields","href":"/content/content_model/fields/layout_fields"}]},{"title":"Components","href":"/content/content_model/components"}]},{"group":"Content Library","pages":[{"title":"Overview","href":"/content/content_library/overview"},{"title":"Create a New Entry","href":"/content/content_library/create_a_new_entry"},{"title":"Preview, Publish, and Schedule an Entry","href":"/content/content_library/preview_publish_entry"},{"title":"Creating a New Variant","href":"/content/content_library/creating_a_new_variant"},{"title":"Versioning","href":"/content/content_library/versioning"},{"title":"Unpublish or Delete Content","href":"/content/content_library/unpublish"}]},{"group":"Media Manager","pages":[{"title":"Overview","href":"/content/media_manager/overview"},{"title":"Uploading Assets","href":"/content/media_manager/upload_assets"},{"title":"Managing Assets","href":"/content/media_manager/managing_assets"},{"title":"Organizing with Folders","href":"/content/media_manager/organizing_with_folders"},{"title":"Bulk Operations","href":"/content/media_manager/bulk_operations"}]},{"group":"Publish Queue","pages":[{"title":"Publish Queue","href":"/content/publish_queue/pub_queue"}]},{"group":"Forms","pages":[{"title":"Forms","href":"/content/forms/forms"}]},{"group":"Navigation","pages":[{"title":"Overview","href":"/content/navigation/overview"},{"title":"Create a Navigation Menu","href":"/content/navigation/create_navigation_menu"},{"title":"Add Pages to Your Menu","href":"/content/navigation/add_pages_to_your_menu"},{"title":"Multi-Level Menus","href":"/content/navigation/multi_level_menu"},{"title":"Editing \u0026 Deleting Entire Menus","href":"/content/navigation/edit_delete_menu"},{"title":"Manage Individual Menu Items","href":"/content/navigation/manage_individual_menuitems"},{"title":"External \u0026 Custom Links","href":"/content/navigation/manage_external_links"}]},{"group":"Caching","pages":[{"title":"Cache","href":"/content/caching/cache_webpages"}]}]},{"tab":"Experiments","groups":[{"group":"Overview","pages":[{"title":"Experiments Overview","href":"/experiments/overview/overview"},{"title":"Experiment Statuses","href":"/experiments/overview/experiment_statuses"}]},{"group":"A/B Testing","pages":[{"title":"Create an A/B Test","href":"/experiments/a_b_testing/create_an_ab_test"},{"title":"Details","href":"/experiments/a_b_testing/details"},{"title":"Metrics","href":"/experiments/a_b_testing/metrics"},{"title":"Target Audience","href":"/experiments/a_b_testing/target_audience"},{"title":"Duration","href":"/experiments/a_b_testing/duration"},{"title":"Variants","href":"/experiments/a_b_testing/variants"},{"title":"Experience","href":"/experiments/a_b_testing/experience"}]},{"group":"Personalization","pages":[{"title":"Create a Personalization Experiment","href":"/experiments/personalization/create_a_personalization_experiment"},{"title":"Details","href":"/experiments/personalization/details"},{"title":"Metrics","href":"/experiments/personalization/metrics"},{"title":"Target Audience","href":"/experiments/personalization/target_audience"},{"title":"Duration","href":"/experiments/personalization/duration"},{"title":"Experience","href":"/experiments/personalization/experience"}]},{"group":"Targeting","pages":[{"title":"Condition Based Targeting","href":"/experiments/targeting/condition_based_targeting"}]},{"group":"Managing Experiments","pages":[{"title":"Manage Your Experiments","href":"/experiments/managing_experiments/experiment_list"},{"title":"Set Experiment Priority","href":"/experiments/managing_experiments/experiment_priority"},{"title":"Pause an Experiment","href":"/experiments/managing_experiments/pause_an_experiment"},{"title":"End an Experiment","href":"/experiments/managing_experiments/end_an_experiment"},{"title":"Clone and Delete Experiments","href":"/experiments/managing_experiments/clone_and_delete_an_experiment"}]},{"group":"Analytics","pages":[{"title":"View Experiment Results","href":"/experiments/analytics/overview"},{"title":"Experience Analytics","href":"/experiments/analytics/experience_analytics"}]}]},{"tab":"Theme Development","groups":[{"group":"Getting Started","pages":[{"title":null,"href":"/theme-development/getting-started/introduction"},{"title":null,"href":"/theme-development/getting-started/prerequisites"},{"title":null,"href":"/theme-development/getting-started/quickstart"}]},{"group":"Overview","pages":[{"title":null,"href":"/theme-development/overview/base-theme-introduction"},{"title":null,"href":"/theme-development/overview/base-theme-source-files"},{"title":null,"href":"/theme-development/overview/components-and-widgets"},{"title":null,"href":"/theme-development/overview/development-environments"},{"title":null,"href":"/theme-development/overview/execution-flow"},{"title":null,"href":"/theme-development/overview/folder-structure"}]},{"group":"Theme Components","pages":[{"title":null,"href":"/theme-development/theme-components/about-components"},{"title":null,"href":"/theme-development/theme-components/cms-library-components"},{"title":null,"href":"/theme-development/theme-components/common-components"},{"title":null,"description":null,"href":"/theme-development/theme-components/components-best-practices"},{"title":null,"href":"/theme-development/theme-components/custom-components-with-content-library"},{"title":null,"description":null,"href":"/theme-development/theme-components/custom-components-with-free-form"},{"title":null,"href":"/theme-development/theme-components/custom-components"},{"title":null,"href":"/theme-development/theme-components/custom-droppable-widgets"},{"title":null,"href":"/theme-development/theme-components/custom-image"},{"title":null,"href":"/theme-development/theme-components/droppable-widgets"},{"title":"eCommerce Components","href":"/theme-development/theme-components/eCommerce-components"},{"title":null,"href":"/theme-development/theme-components/exp-image"},{"title":null,"href":"/theme-development/theme-components/menu-component"},{"title":null,"href":"/theme-development/theme-components/traits"},{"title":null,"href":"/theme-development/theme-components/widgets"}]},{"group":"Create Custom Widget","pages":[{"title":null,"href":"/theme-development/create-custom-widget/create-widget"},{"title":null,"href":"/theme-development/create-custom-widget/get-model-internal-name"},{"title":null,"href":"/theme-development/create-custom-widget/how-to-use-traits"},{"title":null,"href":"/theme-development/create-custom-widget/integrate-a-component-with-widget"},{"title":null,"href":"/theme-development/create-custom-widget/types-of-traits"},{"title":null,"href":"/theme-development/create-custom-widget/what-is-trait"}]},{"group":"Theme Templates","pages":[{"title":null,"href":"/theme-development/theme-templates/blog"},{"title":null,"href":"/theme-development/theme-templates/channel-specific-templates"},{"title":null,"href":"/theme-development/theme-templates/custom-templates"},{"title":null,"href":"/theme-development/theme-templates/default-templates"},{"title":null,"href":"/theme-development/theme-templates/introduction"},{"title":null,"href":"/theme-development/theme-templates/routing"}]},{"group":"Experro CLI","pages":[{"title":null,"href":"/theme-development/experro-cli/about-cli"},{"title":null,"href":"/theme-development/experro-cli/get-cli-token"},{"title":null,"href":"/theme-development/experro-cli/review-environment-file"},{"title":null,"href":"/theme-development/experro-cli/theme-deployment"},{"title":null,"href":"/theme-development/experro-cli/troubleshotting"}]},{"group":"Other","pages":[{"group":"Services","pages":[{"title":null,"href":"/theme-development/other/services/auth-service"},{"title":null,"href":"/theme-development/other/services/content-services"},{"title":null,"href":"/theme-development/other/services/ecommerce-service"}]},{"title":null,"href":"/theme-development/other/change-environment"},{"title":null,"href":"/theme-development/other/channel-information"},{"title":null,"href":"/theme-development/other/making-http-requests"},{"title":null,"href":"/theme-development/other/manage-internationalization"},{"title":null,"href":"/theme-development/other/news-letter-subscribe"},{"title":null,"href":"/theme-development/other/shopify-support"},{"title":null,"href":"/theme-development/other/style-guide"},{"title":null,"href":"/theme-development/other/theme-utilities"}]}]},{"tab":"API Reference","groups":[{"group":"API Documentation","pages":[{"title":"Overview","href":"/api-reference/introduction"},{"title":"Authentication","href":"/api-reference/authbaseurl"},{"title":"Responses \u0026 Errors","href":"/api-reference/responses-errors"},{"title":"Troubleshooting \u0026 Best Practices","href":"/api-reference/troubleshoot"}]},{"group":"Management APIs","pages":[{"group":"Content Management APIs","pages":[{"title":"Add Record","openapi":"POST /content/v2/content-models/{modelInternalName}/records","href":"/api-reference/content-management/create-record/post"},{"title":"Update Record","openapi":"PATCH /content/v2/content-models/{modelInternalName}/records/{contentModelDataId}/versions/{versionId}","href":"/api-reference/content-management/update-record/patch"},{"title":"Delete Records","openapi":"DELETE /content/v2/content-models/{modelInternalName}/records","href":"/api-reference/content-management/delete-records/delete"},{"title":"Publish Record","openapi":"PATCH /content/v2/content-models/{modelInternalName}/records/{contentModelDataId}/versions/publish","href":"/api-reference/content-management/publish-record/patch"},{"title":"Unpublish Record","openapi":"PATCH /content/v2/content-models/{modelInternalName}/records/{contentModelDataId}/versions/unpublish","href":"/api-reference/content-management/unpublish-record/patch"}]}]},{"group":"Delivery APIs","pages":[{"group":"Content Delivery APIs","pages":[{"title":"Search Records","openapi":"GET /content/v2/content-models/{modelInternalName}/records","href":"/api-reference/content-delivery/search-records/get"},{"title":"Search Records","openapi":"POST /content/v2/content-models/{modelInternalName}/records/search","href":"/api-reference/content-delivery/search-records/post"},{"title":"Get Record By Id","openapi":"GET /content/v2/content-models/{modelInternalName}/records/{recordId}","href":"/api-reference/content-delivery/get-record-by-id/get"},{"title":"Get Models List","openapi":"GET /content/v2/content-models","href":"/api-reference/content-delivery/get-models-list/get"},{"title":"Get Model Detail By Id","openapi":"GET /content/v2/content-models/{id}","href":"/api-reference/content-delivery/get-model-detail-by-id/get"},{"title":"Get Model Detail By Internal Name","openapi":"GET /content/v2/content-models/by_internal_name/{modelInternalName}","href":"/api-reference/content-delivery/get-model-detail-by-internal-name/get"},{"title":"Get All Assets","openapi":"GET /assets/v2","href":"/api-reference/content-delivery/get-all-assets/get"},{"title":"Get Asset By Id","openapi":"GET /assets/v2/{id}","href":"/api-reference/content-delivery/get-asset-by-id/get"}]},{"group":"Discovery APIs","pages":[{"group":"Search","pages":[{"title":"Overview","href":"/api-reference/discovery/search/overview"},{"title":"Search Products","openapi":"POST /discovery/search","href":"/api-reference/discovery/search/post"},{"title":"Search Products","openapi":"GET /discovery/search","href":"/api-reference/discovery/search/get"}]},{"group":"Auto Complete","pages":[{"title":"Overview","href":"/api-reference/discovery/autocomplete/overview"},{"title":"Auto-Suggestions","openapi":"GET /discovery/search/auto-suggestions","href":"/api-reference/discovery/auto-suggestions/get"},{"title":"Categories","openapi":"GET /discovery/search/categories","href":"/api-reference/discovery/categories/get"},{"title":"Popular Terms","openapi":"GET /discovery/search/popular-terms","href":"/api-reference/discovery/popular-terms/get"},{"title":"Recent Searches","openapi":"GET /discovery/search/recent-searches","href":"/api-reference/discovery/recent-searches/get"}]},{"group":"Content Search","pages":[{"title":"Overview","href":"/api-reference/discovery/content/overview"},{"title":"Content Search","openapi":"GET /discovery/search/content","href":"/api-reference/discovery/content/get"}]}]},{"group":"Form APIs","pages":[{"title":"Get Form By ID","openapi":"GET /apis/setting-service/public/v1/forms/{form_id}","href":"/api-reference/forms/get-form-by-id/get"},{"title":"Get Form List","openapi":"GET /apis/setting-service/public/v1/forms","href":"/api-reference/forms/get-form-list/get"},{"title":"Submit Form","openapi":"POST /apis/setting-service/public/v1/forms/{form_id}/submit","href":"/api-reference/forms/submit-form/post"}]}]}]},{"tab":"Analytics SDK","groups":[{"group":"Getting Started","pages":[{"title":"Overview","icon":"circle-info","href":"/analytics_sdk/overview"},{"title":"Installation","icon":"download","href":"/analytics_sdk/installation"},{"title":"Manual Event Logging","icon":"code","href":"/analytics_sdk/manual_events"},{"group":"Built-in Events","icon":"chart-line","pages":[{"title":"Products Searched","href":"/analytics_sdk/builtin_events/products_searched"},{"title":"Autocomplete Impressions","href":"/analytics_sdk/builtin_events/ac_impressions"},{"title":"Autocomplete Clicks","href":"/analytics_sdk/builtin_events/ac_click"},{"title":"Category Viewed","href":"/analytics_sdk/builtin_events/category_viewed"},{"title":"Collection Viewed","href":"/analytics_sdk/builtin_events/collection_viewed"},{"title":"Widget Viewed","href":"/analytics_sdk/builtin_events/widget_viewed"},{"title":"Product Viewed","href":"/analytics_sdk/builtin_events/product_viewed"},{"title":"Product Variant Viewed","href":"/analytics_sdk/builtin_events/product_variant_viewed"},{"title":"Product Added to Cart","href":"/analytics_sdk/builtin_events/product_add_to_cart"},{"title":"Product Removed from Cart","href":"/analytics_sdk/builtin_events/product_remove_from_cart"},{"title":"Cart Viewed","href":"/analytics_sdk/builtin_events/cart_viewed"},{"title":"Checkout Initiated","href":"/analytics_sdk/builtin_events/checkout_initiated"},{"title":"Checkout Completed","href":"/analytics_sdk/builtin_events/checkout_completed"},{"title":"Authentication Events","href":"/analytics_sdk/builtin_events/auth_events"}]}]}]},{"tab":"Platform Settings","groups":[{"group":"Workspace Settings","pages":[{"title":null,"href":"/configurations/workspace_settings/introduction"},{"title":"Workspace Details","href":"/configurations/workspace_settings/workspace_details"},{"title":"Environments","href":"/configurations/workspace_settings/environments"},{"title":"Internationalization","href":"/configurations/workspace_settings/internationalization"},{"title":"Channels","href":"/configurations/workspace_settings/channels"},{"title":"AI Knowledge","href":"/configurations/workspace_settings/ai_knowledge"},{"title":"API \u0026 CLI Tokens","href":"/configurations/workspace_settings/api_cli_tokens"},{"title":"GraphQL","href":"/configurations/workspace_settings/graphql"},{"title":"SMTP Settings","href":"/configurations/workspace_settings/smtp_settings"},{"title":"Webhooks","href":"/configurations/workspace_settings/webhooks"},{"title":"Store Integration","href":"/configurations/workspace_settings/store_integration"},{"title":"Users","href":"/configurations/workspace_settings/users"},{"title":"Roles","href":"/configurations/workspace_settings/roles"}]},{"group":"Account Admin Settings","pages":[{"title":"Introduction","href":"/configurations/admin_settings/introduction"},{"title":"Workspaces","href":"/configurations/admin_settings/workspaces"},{"title":"Edit Profile","href":"/configurations/admin_settings/edit_profile"},{"title":"Security","href":"/configurations/admin_settings/security"},{"title":"Users","href":"/configurations/admin_settings/users"},{"title":"Roles","href":"/configurations/admin_settings/roles"},{"title":"Groups","href":"/configurations/admin_settings/groups"},{"title":"Audit Logs","href":"/configurations/admin_settings/audit_logs"},{"title":"Domains","href":"/configurations/admin_settings/domains"},{"title":"Connect Domain","href":"/configurations/admin_settings/connect_domain"},{"title":"Subscription","href":"/configurations/admin_settings/subscription"},{"title":null,"href":"/configurations/admin_settings/invoices"},{"title":"Billing","href":"/configurations/admin_settings/billing"}]}]}]},"title":"Custom components with content library - Experro","buildId":"dpl_HcHmUS6i3UwswnTHJUEdcTtwfdTQ","deploymentId":"dpl_HcHmUS6i3UwswnTHJUEdcTtwfdTQ","dynamics":[],"chunks":[]}