Hi, i tried to use the target attribut as a token in views and it is empty.

Best regards
Lars

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

StatusFileSize
new992 bytes

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

StatusFileSize
new960 bytes

The patch attached works with 7.x-1.4

j0sbeir’s picture

StatusFileSize
new960 bytes

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

j0sbeir’s picture

j0sbeir’s picture

StatusFileSize
new846 bytes

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

nightlife2008’s picture

I just noticed my faulty patching :(

Anonymous’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
StatusFileSize
new871 bytes

Rerolled.

damienmckenna’s picture

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

The existing test coverage needs expanding.