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

2025/02/10 1:07 PM
Answer

Welcome to the Kentico Community Portal!

If you have questions about Kentico Xperience 13, I recommend asking on Kentico DevNet which is dedicated to that version of Kentico (and all older versions).

The Kentico Community Portal Q&A discussions are for our latest product Xperience by Kentico.

To answer this question, you have to login first.