With Drupal 7 tokens, how do I get the path from a custom link field?

1.5k Views Asked by At

This must be trivial, but for the life of me, I can't figure out how to get the URL/path portion of a link field with tokens. I am using the Display Suite module and want to make the entire teaser of a node link to the URL specified in a link field.

So in the Custom Wrapper GUI for a node display type, I pick "Add Link as Token" and add this token:

[node:field-goto-link]

This gets me the hyperlink, so I thought I could do:

[node:field-goto-link:url]

...but that isn't a valid token. So what are the sub-pieces to a link?

1

There are 1 best solutions below

0
On

By sure those token that not appear in your list is not available, make sure to enable entity token to have access to field link URL. on my case the token is [node:field-link:url]