This project is read-only.

Programmatic Access to Widget Settings for a Page

Topics: Customizing Orchard, Writing modules
Nov 20, 2012 at 6:50 PM

We have a situation where we'd like to programmatically determine which widgets any given page of the site is loading, and then access settings of some of those widgets. Does anyone know if this is even possible?

We've been trying to get to this data via the WorkContext, but so far have been unsuccessful.

Nov 21, 2012 at 6:41 AM

You can intercept when a Widget is displayed with the shape events. Then you can use a custom property on the WorkContext for sure: wrokContext.SetState(...)

In the end, like in a ResultFilter, you can reuse this custom property.