We are using dictionaries in our project for adding static values from the code.
For example :
string path="sitecore/content/home/ContactUs"
instead of path using dictionary and passing dictionary value to path
string path=Sitecore.Globalization.Translate.Text("path")
We have path in static value. We have two option here :
- Add value in constant .cs file and get that value from here.
- Use Sitecore dictionary.
We are adding values in dictionaries so if we need to change there we can easily change from Content Editor without updating the code.
Can we use dictionary in this way in Sitecore?
Could someone suggest what is the correct way for adding static value in Sitecore if we change it after some time ?