SAP Spartacus和Commerce SmartEdit的关系

简介: SAP Spartacus和Commerce SmartEdit的关系

SmartEdit is still rendered by SAP Commerce, and is not part of the Spartacus platformSmartEdit, part of SAP Commerce, can be used to edit a site that uses Spartacus for the front end.


Every CMS component implemented in spartacus should be recognized by Smart Edit thanks to the generic smart-edit contract (based on special html attributes implemented in Spartacus). 这个链接能看到contract的更多明细。


It’s implemented inside Spartacus cxComponentWrapper directive, which maps CMS component names into live Angular components. See code: https://github.com/SAP/spartacus/blob/develop/projects/storefrontlib/src/cms-structure/page/component/component-wrapper.directive.ts#L92-L99

private decorate(elementRef: ElementRef): void {

   this.dynamicAttributeService.addDynamicAttributes(

     elementRef.nativeElement,

     this.renderer,

     { componentData: this.cxComponentWrapper }

目录
相关文章
|
2月前
|
UED
什么是 SAP Commerce Cloud SmartEdit Product Carousel Component Editor
什么是 SAP Commerce Cloud SmartEdit Product Carousel Component Editor
|
2月前
|
设计模式 JavaScript 测试技术
Spartacus 在 SmartEdit preview 读取 product 时,参数只有 product code
Spartacus 在 SmartEdit preview 读取 product 时,参数只有 product code
|
2月前
|
机器学习/深度学习 搜索推荐 UED
SAP Commerce Cloud Context Driven Services 概述
SAP Commerce Cloud Context Driven Services 概述
|
2月前
|
监控 搜索推荐 安全
SAP Commerce Cloud Context Driven Services 里 profile-tag.js 的作用介绍
SAP Commerce Cloud Context Driven Services 里 profile-tag.js 的作用介绍
|
2月前
|
存储 消息中间件 搜索推荐
SAP Commerce Cloud Context Driven Services 的 clickStreamEvents HTTP 请求
SAP Commerce Cloud Context Driven Services 的 clickStreamEvents HTTP 请求
|
2月前
|
机器学习/深度学习 人工智能 搜索推荐
SAP Commerce Cloud 智能销售服务 (Intelligent Selling Services)概述
SAP Commerce Cloud 智能销售服务 (Intelligent Selling Services)概述
|
2月前
|
安全 UED 开发者
SAP Commerce Cloud 配置项 refreshWithLock=false 的作用介绍
SAP Commerce Cloud 配置项 refreshWithLock=false 的作用介绍
|
2月前
|
JSON 开发者 数据格式
关于 SAP Spartacus LandingPage2Template 区域的 layout 设计实现
关于 SAP Spartacus LandingPage2Template 区域的 layout 设计实现
|
2月前
|
搜索推荐 开发者 UED
关于 SAP Spartacus 层的 UI 设计
关于 SAP Spartacus 层的 UI 设计
|
9月前
|
缓存 负载均衡 前端开发
SAP Spartacus 和 Sticky session 相关的话题
SAP Spartacus 和 Sticky session 相关的话题