Saving Custom Data
When customizing the CMS there will come a point where you want to save some data that is not content or media and re-use it.
For this you can use GlobalData, which stores a string with an alias.
You can save data into Global Data using the following method, you need to serialise your data into a string
Once it's saved it's very easy to get the data out by using this extension method
Global data is cached by default and auto flushed whenever SaveGlobalDataCommand
is used. However, if you want to bypass the cache and manually call for the data you can use
Did you know, we use Global Data to power the Global Settings in the CMS
Last updated