1.

What do you mean by tokens? List types of tokens supported by Sitecore.

Answer»

A token is simply a way to assign values dynamically when creating an item. Some strings in Sitecore begin with the $ symbol (such as $name), mainly in STANDARD values (_Standard Values) in templates. If we create an item using the same template, a PARTICULAR field will be replaced with a readable name (i.e. item name). The magic in this scene comes from the $name, usually referred to as TOKENS in Sitecore. In a similar vein, Sitecore offers many built-in tokens as follows:

  • $name: The name of the newly created item/
  • $id: The new item's ID.
  • $parentid: The ID of the new item's parent.
  • $parentname: The name of the new item's parent.
  • $date: Current date in yyyyMMdd format.
  • $TIME: Current time in HHmmss format.
  • $now: Current date and time in yyyyMMddTHHmmss format.


Discussion

No Comment Found