External-Component-Content-Hub

所属分类:开发工具
开发工具:TypeScript
文件大小:0KB
下载次数:0
上传日期:2023-01-24 21:21:55
上 传 者sh-1993
说明:  这是一个示例解决方案,用于演示如何开发和维护Sitecore的内容中心外部组件。请参阅文档...,
(This is an example solution to demonstrate how to develop and maintain Sitecore s Content Hub External Components. Please see documentation for more information: https://doc.sitecore.com/ch/en/developers/42/cloud-dev/integration-components--external-page-component--overview.html)

文件列表:
LICENSE (1067, 2023-01-24)
package.json (621, 2023-01-24)
src/ (0, 2023-01-24)
src/components/ (0, 2023-01-24)
src/components/CustomUserInfo/ (0, 2023-01-24)
src/components/CustomUserInfo/UserId.tsx (753, 2023-01-24)
src/components/CustomUserInfo/index.tsx (890, 2023-01-24)
src/components/HelloWorld/ (0, 2023-01-24)
src/components/HelloWorld/index.tsx (252, 2023-01-24)
src/components/SearchFilter/ (0, 2023-01-24)
src/components/SearchFilter/AddSearchFilters.tsx (4716, 2023-01-24)
src/components/SearchFilter/index.tsx (1596, 2023-01-24)
src/components/SubscribingEvents/ (0, 2023-01-24)
src/components/SubscribingEvents/index.tsx (2123, 2023-01-24)
src/vite-env.d.ts (38, 2023-01-24)
tsconfig.json (559, 2023-01-24)
tsconfig.node.json (184, 2023-01-24)
vite.config.ts (439, 2023-01-24)

# External Components For Sitecore's Content Hub Solution Example This is a template example to use when building a solution for managing external components inside Sitecore's Content Hub. For more information please visit https://doc.sitecore.com/ch/en/developers/42/cloud-dev/integration-components--external-page-component--overview.html ## Installation npm install ## Usage #### Build your dist specific components feature npm run build --component=ComponentFolderName #### Watch build while developing npm run watch --component=ComponentFolderName #### Run you dev server npm run dev --component=ComponentFolderName #### How to test in Content Hub 1. Go to page and create external component 2. Edit the component select "From Path" 3. Paste dev server url in box (E.g https://localhost:5173/dist/entitydetails.js) 4. Save and navigate to the page with external component #### How to upload bundle as an asset to Content Hub 1. Wait for all the renditions to be processed. You can view their progress on your Background processes page. 2. On the page where your external component is, click the name of the component. 3. On the component detail page, under JS bundle, click From asset. 4. In the drop-down list, click the name of your bundle asset. 5. Click Save. ## Contributing Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change. Please make sure to update tests as appropriate. ## License [MIT](https://choosealicense.com/licenses/mit/)

近期下载者

相关文件


收藏者