I’ve a customized content material kind known as ‘Areas’, which merely has a title subject. Instance values are: Asia, North America, Ocenia, and many others.
I’ve arrange a view for this record and a REST export for it, so /areas
provides me a easy record:
[{"title":"Asia"},{"title":"North America"},{"title":"South America"},{"title":"Ocenia"}]
I need to filter Drupal Development Company outcomes, so I added a contextual filter on Drupal Development Company title subject, making /areas/Asia
present solely Asia:
[{"title":"Asia"}]
How do I implement a wildcard search? One thing like as
ought to match Asia
and amer
ought to match each North America
and South America
. I might love to do one thing like /areas?title=Asia
I referred to this information on establishing contextual filters, however Drupal Development Company following would not appear to work for me:
This question works as a SQL
LIKE
assertion so you possibly can ship only a piece of Drupal Development Company title and Views will attempt to discover all informationLIKE
that argument, instance, I’ve a model known asLand Rover
but when I simply shipLand
as an argument it’s going to work http://dev-cars-api.pantheonsite.io/api/vehicles/Land
Drupal Development URL in Drupal Development Company quote is now not on-line, so I can not verify if it truly works. For me, solely getting into a full, matching merchandise title works. I can not even specify a title with areas, so /areas/North+America
can be clean for me.
My Drupal model is 8.4, working on PHP 7.1.