Support from Acquia helps fund testing for Drupal Acquia logo

Comments

KarlShea’s picture

Version: 7.x-1.1 » 7.x-1.3
Issue summary: View changes

I 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.

aryser’s picture

nightlife2008’s picture

In attachment is the patch I created to support the attribute tokens.

B-Prod’s picture

Status: Active » Reviewed & tested by the community

Status: Reviewed & tested by the community » Needs work

The last submitted patch, 3: link-1985050-add-attribute-tokens.patch, failed testing.

j0sbeir’s picture

The patch attached works with 7.x-1.4

j0sbeir’s picture

Fixed patch path so it can be used properly with drush make

j0sbeir’s picture

j0sbeir’s picture

Okay.. something went wrong with my upload :-)
Third time's the charm!

nightlife2008’s picture

I just noticed my faulty patching :(

anneeasterling’s picture

This 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!

scott_earnest’s picture

DamienMcKenna’s picture

Version: 7.x-1.3 » 7.x-1.x-dev
DamienMcKenna’s picture

Status: Needs work » Needs review
FileSize
871 bytes

Rerolled.

DamienMcKenna’s picture

Status: Needs review » Needs work
Issue tags: +Needs tests

The existing test coverage needs expanding.