You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Is it possible to put a middleware between rendering partial view? #2267
changed the title [-]is it possible to put a middleware between rendering partial view?[/-][+]Is it possible to put a middleware between rendering partial view?[/+]on Jun 2, 2023
What do you mean by middleware? I assume you mean some HTML snippet, another partial or view component, right? If so, you need to declare a widget zone where you can inject content into:
<zonename="my_zone_name" />
You can inject content by using IWidgetProvider from anywhere you like (it is a scoped dependency):
Activity
[-]is it possible to put a middleware between rendering partial view?[/-][+]Is it possible to put a middleware between rendering partial view?[/+]muratcakir commentedon Jun 2, 2023
What do you mean by middleware? I assume you mean some HTML snippet, another partial or view component, right? If so, you need to declare a widget zone where you can inject content into:
You can inject content by using
IWidgetProviderfrom anywhere you like (it is a scoped dependency):