Data Source
Data source generally it gives the default value for the field it may text, image or link.
Data source Types
1. Empty data source
Field doesn't contain any default values.
2. Xpath data source
Field contain sitecore path it gives default value for that field.
Ex. Gillette/Stadrd Items/Desktop/CommonText/Back
3. Fast Query data source
Using some sitecore queries we can give default values. Download below file for more information
Code for fast query
var searchTerm = "hot n' tasty"; // old code for comparison
var query = string.Format("fast:/sitecore/content/Home/Products//*[@ContentDescriptionText=\"%{0}%\"]", searchTerm); var items = Database.SelectItems(query);
using_sitecore_fast_query001.pdf | |
File Size: | 825 kb |
File Type: |