【问题标题】:hybris smart edit errorshybris 智能编辑错误
【发布时间】:2020-08-14 09:33:24
【问题描述】:

我们已将项目从 6.6 迁移到 1811。当我转到 smartedit 并选择基本编辑透视图时,我遇到了以下错误。谁能让我知道我在这里做错了什么。感谢您宝贵的时间和建议。

de.hybris.platform.cms2.exceptions.CMSItemNotFoundException:找不到名称“HeaderContactUsLinks”的内容槽

de.hybris.platform.cms2.exceptions.CMSItemNotFoundException:找不到名称“HeaderImage”的内容槽

【问题讨论】:

    标签: content-management-system hybris backoffice


    【解决方案1】:

    我假设与此页面模板关联的 jsp 尝试通过执行以下操作(或类似操作)来显示 HeaderContactUsLinks 槽:

    <cms:pageSlot position="HeaderContactUsLinks" var="feature" element="div">
      <cms:component component="${feature}" element="div"/>
    </cms:pageSlot>
    

    但是,根据例外情况,没有为该位置配置内容槽,这就是 Smart Edit 抱怨的原因。要为该位置配置内容槽(即 HeaderContactUsLinks),您可以调整并导入以下 impex:

    INSERT_UPDATE ContentSlotName; name[unique = true]    ; template(uid, $contentCV)[unique = true][default = 'YourPageTemplateIdGoesInHere']; validComponentTypes(code); compTypeGroup(code)
    ; HeaderContactUsLinks              ;                                                                           ;                          ; wide
    
    INSERT_UPDATE ContentSlot; $contentCV[unique = true]; uid[unique = true]         ; name                                  ; active; cmsComponents(&componentRef); ; ;
                             ;                          ; HeaderContactUsLinks-Slot ; Header Contact Us Links Slot; true  ;    ; ; ;
    
    INSERT_UPDATE ContentSlotForTemplate;$contentCV[unique=true];uid[unique=true];position[unique=true];pageTemplate(uid,$contentCV)[unique=true][default='YourPageTemplateIdGoesInHere'];contentSlot(uid,$contentCV)[unique=true];allowOverwrite
                                        ;;HeaderContactUsLinks-SlotForTemplate;HeaderContactUsLinks;;HeaderContactUsLinks-Slot;true
    

    【讨论】:

    • 谢谢。首先,我尝试添加缺少的内容插槽名称,但它不起作用,然后我从 ContentSlotForTemplate 中删除了未使用的内容插槽名称,然后运行 ​​impex。它奏效了。
    • 嗨 DJ,你看到下面的问题了吗?有什么想法吗? stackoverflow.com/questions/61594440/…
    猜你喜欢
    • 1970-01-01
    • 2020-11-20
    • 2016-05-05
    • 2013-12-11
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2019-03-09
    相关资源
    最近更新 更多