Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Hi all,
I have a node type A with a entity_reference field named "field_subnode" pointing to a node type B:
A -> B
I'm using pathauto, with the following patterns setted up:
URL path for nodes of type A:
books/[node:title]
Now I need something similar to:
books/[node-type-A:title]/[node:title]
as path for my nodes of type B, to obtain urls like the following:
books/my-car-book/chapter-1
Which token I have to use to obtain what I want?
I've tried different tokens like for example:
books/[node:field-subnode:1:title]/[node:title]
but without success.
Thank you for helping me.