0

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?

Gus Reiber
  • 41
  • 1
  • 9
  • If you have a field-goto-link field, then with [node:field-goto-link] you link the teaser to that link. I don't really understand your problem. Your teaser link is not working? I tried it as you described with [node:field-goto-link], and it linked my teaser to that link... – taki12345 Jul 25 '14 at 12:54
  • I end up going to this URL:MY-LINK_TITLE ...my hope/belief was that I just had the token wrong, namely I needed to select the path portion of the link object. – Gus Reiber Jul 25 '14 at 15:46
  • Having the same problem, I want to link a teaser content to a custom url, so I created a link field, and tried with display suite to link the content to the field using tokens, but not working... Same problem 9 Month ago here: https://www.drupal.org/node/2092509 – Alcalyn Jul 29 '14 at 15:21

1 Answers1

1

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]

Mr Asiyra
  • 11
  • 1