I’ve a Content material View that has some a number of uncovered filters and I added a filter identifier
to them in order that I can go filters in via through URL Parameters.
This works as anticipated for some fundamental filters like a area with a ‘true/false’ worth or a mixed fields textfield filter, and many others. I’m able to go in a parameter like ?key phrases=check
and this works for Drupal Developer mixed fields filter
completely. Nevertheless, I’ve a problem when Drupal Developer filter is an inventory of some kind like an integer listing or a taxonomy time period reference.
Area | Sort | Filter identifier
field_length | Record(integer) | size field_topic | Taxonomy Time period Entity Reference | subject
Listed here are Drupal Developer totally different challenge’s I am dealing with:
ISSUE 1
For these filters if their widget is ready to default (a easy choice listing like in Drupal Developer image above), and I put in a URL parameter like ?subject=Awards
, it would not work. Drupal Development Service Awards
choice in Drupal Developer filter listing isn’t highlighted neither is it utilized to Drupal Developer question.
ISSUE 2
For these filters if their widget is ready to a checkboxes area (see picture above) and I put in a URL parameter like ?subject=Awards
, then I get Drupal Developer following error
Drupal Development Service web site encountered an sudden error. Please strive once more later. Error: Can't create references to/from string offsets in DrupalComponentUtilityNestedArray::setValue() (line 155 of core/lib/Drupal/Part/Utility/NestedArray.php). DrupalComponentUtilityNestedArray::setValue(Array, Array, NULL) (Line: 1250) DrupalCoreFormFormBuilder->handleInputElement('views_exposed_form', Array, Object) (Line: 1001) DrupalCoreFormFormBuilder->doBuildForm('views_exposed_form', Array, Object) (Line: 1071) DrupalCoreFormFormBuilder->doBuildForm('views_exposed_form', Array, Object) (Line: 1071) DrupalCoreFormFormBuilder->doBuildForm('views_exposed_form', Array, Object) (Line: 575) DrupalCoreFormFormBuilder->processForm('views_exposed_form', Array, Object) (Line: 321) DrupalCoreFormFormBuilder->buildForm('DrupalviewsFormViewsExposedForm', Object) (Line: 134) DrupalviewsPluginviewsexposed_formExposedFormPluginBase->renderExposedForm() (Line: 1238) DrupalviewsViewExecutable->construct() (Line: 390) DrupalviewsPluginviewsdisplayPathPluginBase->execute() (Line: 180) DrupalviewsPluginviewsdisplayPage->execute() (Line: 1630) DrupalviewsViewExecutable->executeDisplay('advanced_search_page', Array) (Line: 81) DrupalviewsElementView::preRenderViewElement(Array) call_user_func_array(Array, Array) (Line: 101) DrupalCoreRenderRenderer->doTrustedCallback(Array, Array, 'Render #pre_render callbacks have to be strategies of a category that implements DrupalCoreSecurityTrustedCallbackInterface or be an nameless perform. Drupal Development Service callback was %s. See https://www.drupal.org/node/2966725', 'exception', 'DrupalCoreRenderElementRenderCallbackInterface') (Line: 786) DrupalCoreRenderRenderer->doCallback('#pre_render', Array, Array) (Line: 377) DrupalCoreRenderRenderer->doRender(Array, ) (Line: 201) DrupalCoreRenderRenderer->render(Array, ) (Line: 241) DrupalCoreRenderMainContentHtmlRenderer->DrupalCoreRenderMainContent{closure}() (Line: 578) DrupalCoreRenderRenderer->executeInRenderContext(Object, Object) (Line: 242) DrupalCoreRenderMainContentHtmlRenderer->put together(Array, Object, Object) (Line: 132) DrupalCoreRenderMainContentHtmlRenderer->renderResponse(Array, Object, Object) (Line: 90) DrupalCoreEventSubscriberMainContentViewSubscriber->onViewRenderArray(Object, 'kernel.view', Object) call_user_func(Array, Object, 'kernel.view', Object) (Line: 142) DrupalComponentEventDispatcherContainerAwareEventDispatcher->dispatch(Object, 'kernel.view') (Line: 163) SymfonyComponentHttpKernelHttpKernel->handleRaw(Object, 1) (Line: 80) SymfonyComponentHttpKernelHttpKernel->deal with(Object, 1, 1) (Line: 57) DrupalCoreStackMiddlewareSession->deal with(Object, 1, 1) (Line: 47) DrupalCoreStackMiddlewareKernelPreHandle->deal with(Object, 1, 1) (Line: 191) Drupalpage_cacheStackMiddlewarePageCache->fetch(Object, 1, 1) (Line: 128) Drupalpage_cacheStackMiddlewarePageCache->lookup(Object, 1, 1) (Line: 82) Drupalpage_cacheStackMiddlewarePageCache->deal with(Object, 1, 1) (Line: 47) DrupalCoreStackMiddlewareReverseProxyMiddleware->deal with(Object, 1, 1) (Line: 52) DrupalCoreStackMiddlewareNegotiationMiddleware->deal with(Object, 1, 1) (Line: 23) StackStackedHttpKernel->deal with(Object, 1, 1) (Line: 717) DrupalCoreDrupalKernel->deal with(Object) (Line: 19)
How am I suppose to go URL Parameters for Uncovered Filters which are lists?
UPDATE
I discovered that if I go Drupal Developer parameter as subject[]=<subject id>
that Drupal Developer filter is utilized to a question, however Drupal Developer view filter kind doesn’t have that subject marked… Moreover, if I go Drupal Developer parameter as subject[]=<subject title>
I get an error saying that an unlawful alternative has been detected
..
How am I suppose to configure up a view with a checkbox listing uncovered filter that’s able to receiving Drupal Developer filter as URL Parameters utilizing Drupal Developer listing merchandise title as a substitute of id? It looks like a reasonably widespread characteristic that might work out of field like Drupal Developer different filters…
Right here is my configuration on Drupal Developer subject
uncovered filter FWIW: