Needs work
Project:
Link
Version:
7.x-1.x-dev
Component:
Miscellaneous
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
2 May 2013 at 13:00 UTC
Updated:
20 Dec 2019 at 11:37 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
karlsheaI am also not able to get at the target attribute through Token. I'm using latest Entity Token dev, latest Link, latest Token and the attributes token returns a struct wrapper, but when trying to nest any further the struct wrapper is null in the function to get the value for target.
Comment #2
aryser commentedComment #3
nightlife2008 commentedIn attachment is the patch I created to support the attribute tokens.
Comment #4
b-prod commentedComment #6
j0sbeir commentedThe patch attached works with 7.x-1.4
Comment #7
j0sbeir commentedFixed patch path so it can be used properly with drush make
Comment #8
j0sbeir commentedComment #9
j0sbeir commentedOkay.. something went wrong with my upload :-)
Third time's the charm!
Comment #10
nightlife2008 commentedI just noticed my faulty patching :(
Comment #11
Anonymous (not verified) commentedThis patch enabled me to use a token formatted like this to access the target attribute:
[entity_name:field_custom_link:attributes:target]In other words, I've tested and works. It would be awesome if this were officially tested and committed.
Thanks!
Comment #12
scott_earnest commentedPerhaps: https://www.drupal.org/project/link/issues/1508614#comment-13382074
Comment #13
damienmckennaComment #14
damienmckennaRerolled.
Comment #15
damienmckennaThe existing test coverage needs expanding.