使用 Sitecore $ 变量



是否有定义如何在 Sitecore 中创建和使用$variables的网站/链接? 我正在寻找变量的完整列表以及如何定义自定义变量。提前谢谢你。

我想

您想了解有关 Sitecore 令牌的更多信息。

OOTB Sitecore 中有 6 个令牌。按字母顺序排列:

  • $date – 服务器日期
  • $id – 当前项目 ID
  • $name – 当前项名称
  • $now – 服务器日期时间
  • $parentid – 父项 ID
  • $parentname – 父项名称
  • $time – 服务器时间

当它们用作模板__Standard Value项上的字段值并且用户使用该模板创建项时,令牌将"转换"为适当的值。

有关令牌以及如何创建自定义令牌的更多信息:

  • https://community.sitecore.net/technical_blogs/b/sitecorejohn_blog/posts/add-custom-standard-values-tokens-in-the-sitecore-asp-net-cms
  • https://sitecorecorner.com/2014/08/03/sitecore-custom-tokens/
  • https://soen.ghost.io/working-with-custom-tokens-in-sitecore/

最新更新