Closed (works as designed)
Project:
Display Suite
Version:
7.x-2.6
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
18 Sep 2013 at 20:48 UTC
Updated:
19 Dec 2016 at 15:53 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
greg boggsIf you get tokens printed out, it means that you typoed the token.
Example:
This first one will work:
[node:field-link:url]
will print:
onclick="location.href='http://google.com'"
These two will print garbage to the onclick:
[node:field_link]
will print:
onclick="location.href='"
[node:field_link:url]
will print:
onclick="location.href=[node:field_link:url]"
Comment #2
PI_Ron commentedI've tried:
and
Both produce garbage, only
[node:field_link]produces data, but it is a complete link sanitised. I can't figure how to access just the link URL.Comment #3
m.abdulqader commentedBy 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]
Comment #4
RAWDESK commentedHi,
I'm experiencing another issue with custom wrappers set on a teaser view mode :
When my content type is set to be multilinguale and my custom links are set like :
/nl/node/1/edit > field-link = "dutch-path-alias"
/fr/node/1/edit > field-link = "french-path-alias"
where nl is my base language
then on fr/node/1 my wrapped link looks like :
onclick="location.href='fr/dutch-path-alias'"
For some reason the token replacement is not taking into account of the global language (read: active language).
I thought i could fix it using this patch :
https://www.drupal.org/node/535522#comment-9265551
without any luck though.
Is this a DS, i18n or token issue ?
#UPDATE
Fixed at https://www.drupal.org/node/2475743#comment-11833928