Dynamically change datasource of a custom property on a widget?

2025/02/09 10:03 AM

I need to change the datasource of a Dropdown component based on the page the Widget is rendered. So I bassically need to know is the widget is on a General Content Page Type or a Category Overview Page Type for instance. I'm trying to use a FormComponentConfigurator, but the IPageContextRetriever always returns false no matter what page type a use. I may need to use Kentico().PageData() helper method somewhere but I'm not sure where exactly. So any insight would be apreciate.


Environment

  • Kentico Xperience 13
  • .NET version: [8|9]

Answers

To response this discussion, you have to login first.