We're looking for a way to have one list widget in a WP sidebar that behaves differently on different pages, in order to avoid having to configure dozens of different widgets.
I'm thinking it would help us if we could define widget parameters in URL query parameters, eg.
The value of $_GET['civievent_event_type_id'] would then override the configured value of event_type_id in the sidebar widget.
Is this at all desirable for the project? Any Bad Idea warnings from more experienced devs?
We're looking for a way to have one list widget in a WP sidebar that behaves differently on different pages, in order to avoid having to configure dozens of different widgets.
I'm thinking it would help us if we could define widget parameters in URL query parameters, eg.
The value of
$_GET['civievent_event_type_id']would then override the configured value ofevent_type_idin the sidebar widget.Is this at all desirable for the project? Any Bad Idea warnings from more experienced devs?