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.
I want to set up a review option. So we have a product and a review.
Is it possible to use tokens from the node reference in the url alias? So for example my product is.
url.com/product/[term]/[produc_title]
Is there a way to have my reviews path as:
url/com/product/[node_reference_term]/[node_reference_title]/reviews/[review_nid]
Maybe there's a work around for this?
Comments
Comment #1
Michsk CreditAttribution: Michsk commentedSeems this is being discused in : http://drupal.org/node/483156
Comment #2
Michsk CreditAttribution: Michsk commentedenough ways to do this. Trying custom tokem module a.t.m.
Comment #3
Michsk CreditAttribution: Michsk commentedSo this was pretty easie.
I basically want to get the path of the parent node and place /review/[reviewnid] behind it, so using custom tokens module and using the following made me do just that.
And that gets me the alias of the referred node so i still have the freedom to play with the rest of the pattern.
Comment #4
Anonymous (not verified) CreditAttribution: Anonymous commentedThanks Iasac, I was looking for a solution and your answer worked! :)