title: Sitecore DataSource Query in Template
body: <p>How to write a query in template's DataSource to generate the path of item?</p>
  
  <p>If I write a query in DataSource field and a page uses the template, the datasource value will be the item's path as dynamic datasource, like the screenshot.</p>
  
  <p><img src="https://i.stack.imgur.com/691Wy.png" alt="enter image description here"></p>