Skip to content

Instantly share code, notes, and snippets.

@sitefinitySDK
Created January 20, 2026 12:06
Show Gist options
  • Select an option

  • Save sitefinitySDK/eed41eb92ac82c62345d3c96bd82c88e to your computer and use it in GitHub Desktop.

Select an option

Save sitefinitySDK/eed41eb92ac82c62345d3c96bd82c88e to your computer and use it in GitHub Desktop.
import { WidgetRegistry, initRegistry, defaultWidgetRegistry } from '@progress/sitefinity-nextjs-sdk';
const customWidgetRegistry: WidgetRegistry = {
widgets: {
// ... your custom widgets
},
filters: [
// ... your custom filters
]
};
customWidgetRegistry.widgets = {
...defaultWidgetRegistry.widgets,
...customWidgetRegistry.widgets
};
// Include default filters with custom filters
customWidgetRegistry.filters = [
...(defaultWidgetRegistry.filters || []),
...(customWidgetRegistry.filters || [])
];
export const widgetRegistry: WidgetRegistry = initRegistry(customWidgetRegistry);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment