使用Sitecore $变量

时间:2018-02-01 16:33:45

标签: sitecore

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

1 个答案:

答案 0 :(得分:4)

I think you want to learn more about Sitecore tokens.

OOTB there are 6 tokens in Sitecore. In alphabetical order:

  • $date – server date
  • $id – current item id
  • $name – current item name
  • $now – server datetime
  • $parentid – parent item id
  • $parentname – parent item name
  • $time – server time

When they are used as a value of field on __Standard Value item of a template and user creates an item using that template, tokens are "translated" into appropriate values.

More about tokens and how to create custom tokens: