With the ToolManager
I can get the the current placement, the context and of course, the Site through the SiteService
. But I want to get the current SitePage properties the user is currently accessing.
This doubt can be extended to the current Tool properties with a little more emphasis considering that once I have the Tool I could not find any methods covering the its properties.
I could get the tool properties and I'm using it (it is by instance) through Properties
got with sitepage.getTool(TOOLID).getConfig()
. To save a property, I'm using the ToolConfiguration
approach and saving the data after editing with the ToolConfiguration.save()
method. Is it the correct approach?