【问题标题】:Sitecore SXA - Scriban error with sc_beginfield, can't be foundSitecore SXA - sc_beginfield 的 Scriban 错误,找不到
【发布时间】:2021-12-07 19:39:55
【问题描述】:

我的 scriban 变体 ˙error : The function `sc_beginfield` was not found 遇到了这个问题。

这是模板:

{{ sc_beginfield i_item 'Link' [['text', ' ']]}}
   {{ sc_link_text i_item 'Link' }}
<span class="fa fa-wrench icon-right" aria-hidden="true" data-ce-key="1202"></span>
{{ sc_endfield }}

有人能告诉我这里出了什么问题吗?我认为这个代码模板是正确的,但我肯定可能是错误的

【问题讨论】:

    标签: sitecore sitecore-sxa scriban


    【解决方案1】:

    似乎 sc_beingfield 实现不存在。基本上确保您在 website\App_Config\Modules\SXA\Foundation\Sitecore.XA.Foundation.Scriban.config 中有以下设置

      <processor type="Sitecore.XA.Foundation.Scriban.Pipelines.GenerateScribanContext.AddFieldFunctions, Sitecore.XA.Foundation.Scriban" resolve="true"/>
    

    Sitecore.XA.Foundation.Scriban.dll

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2020-04-10
      相关资源
      最近更新 更多