A site I am working on has a content type called property
with a large number of fields within where the data is brought in from a 3rd party API.
Currently we use pathauto
for generating alias urls of our content and has admirably filled our needs, except for the property content type which has a number of conditions which can determine what its url is and I am unsure that pathauto can do what is required.
We are using Drupal 8, latest version.
A properties url will contain the location, the listing type (sale, rental, auction or new-home) and the title of the property in its url.
So for example, a property with title ABC
which is been sold
in henley
would have a url along the lines of http://example.com/property-for-sale/henley/abc
.
But a property xyz
on auction
in basingstoke
would be along the lines of http://example.com/auctions/basingstoke/xyz
Is there a hook/module or Drupal way (Views?) of handling this please? IF I remember Drupal 7 had hook_url_inbound_alter
but I cannot find this in the D8 API.
Any enlightenment would be appreciated.
Grateful Grasshopper/John