We are using TC 9.2, Please let me know if it possible or any suggestion on workarounds
Have to save the widget configuration data to a custom table, that is when widget is opened in edit page mode. On clicking save on widget configuration the data should save in custom table. Any string, blog, group extra taken input in widget configuration.
Why do you want to do this???
There are number of blogs in a group. There are two pages, first would list few blogs(it would be set through widget configuration) and second page would do the same. Have to save mapping for each page.
That is for individual page from that group which blogs are listing on the page.
Can do through widget, with each hit to page saving the data through to custom table, but looking for a better option. There would be number of user accessing the page, want to avoid unnecessary connections to DB.
Hope, made me more clear on objective
Is whatever configuration you are trying to read being used inside the widget to control how its displaying? Or is it meant to do something else?
If something else, you should not be using widgets at all.If yes, then it can only be read by the widget and should only be used to dictate its display, I am not sure with how someone chose to display a widget provides any value outside of it, especially since the only people who can configure a widget anyway are owners and administrators or anyone given permission to modify how the entire group or site looks.
Yes, using the configuration to control the display
Ok. Inside the widget is the only place you can read the configuration. And a widget only executes when it renders, meaning that is when you can access the values.
vinayak.kohli1 - what did you decide to roll with then?
Hey Luke, done it by parsing dynamic configuration from cs_ConfiguredContentFragments table. Applied a trigger on the table, so its keep on refreshing the custom table for updates