I want to write automaticilly a contact of car rental.

I have created a content type for a "car" (with fiels for the name the license number and another for the people who rents the car with field for name. In this last content, I have added an entity field which points towards the content type "car" and another for the body in which I want to use token insert.
I insert a token for the name of people who rent the car : [node:field-nom] and it works.
and others tokens linked to the car :

  • [node:field-nom-veh] for the nameof the car
  • [node:field_immatriculation] for the license number

These 2 tokens does not work.
Thank you

Comments

attiks’s picture

Token insert only does the insert, if they don't get replaced it might be a token or entity problem

altbzh’s picture

ok thank you

attiks’s picture

Project: Token Insert » Token
Version: 7.x-2.0 » 7.x-1.x-dev

Moving to token issue queue, if it isn't a token problem, feel free to move it back

Dave Reid’s picture

Category: bug » support
Status: Active » Postponed (maintainer needs more info)

Do these tokens produce the proper values on the node/[nid]/devel/token page of the reference node (if you have Devel module enabled)? If so, then this isn't a token module issue, it's an issue with the module calling token_replace() not providing the correct data.

Dave Reid’s picture

Status: Postponed (maintainer needs more info) » Closed (cannot reproduce)
altbzh’s picture

Sorry Dave : I was away ....

When I look at Devel/token, there is nothing for the token of the entity reference token ... so does it mean that the problem com from entity reference token ?
Thank you

bkloef’s picture

I just came across the same problem. I wanted to allow one or more nodes to refer back to a "parent" node. Entity reference seemed the way to do this, but my URL aliases were completely missing this segment. Activating devel revealed no value for the entity reference token.