I had created a "complex" pattern: it works but i would know if it is a right way.
I' have three content type and from each of which a create a nodes type "contact".
As "contact path" i need to have a complete path that can "hook" in my case:
/1° content-type (Corporate OR Agency OR PR Agency)/Name of entity(Corporate OR Agency OR PR Agency)/Node-type (Contats)/Node-title
So i found this solution:
[node:field-corporate-entity:content-type]/[node:field_corporate_entity]/[node:field-agency-entity:content-type]/[node:field_agency_entity]/[node:field-pr-agency-entity:content-type]/[node:field_pr_agency_entity]/[node:content-type]/[node:title]
It works well and now contacts url has the path(e.g):
-corporate/microsoft/contact/hisname OR if it is a Agency
-agency/Mccann/contact/hisname OR if it is a PR Agency
-pr-agency/McGrowHill/contact/hisname
However i would ask you if this is a correct solution or there is a more simple drupal-way
Thx for your suggestion
Comments
Comment #2
ben.kyriakou CreditAttribution: ben.kyriakou as a volunteer commentedHi senzaesclusiva. From the information you've provided I'm not entirely sure how you're trying to achieve this. It sounds like you've got the following setup:
Three parent content-types which are used to create pages for various categories of organisation:
Beneath those you then have content-type called Contact which is related to one of these types of organisation.
For a contact called Steve at Agency Microcorp, you want a URL to be constructed that looks like:
I'd suggest you organise these pages in a menu, and use the following patterns. For the organisation content-types you can use:
Then for your Contact content-type:
This will generate the path format you're after.
Let me know if this addresses your problem.