I needed to be able to choose tokens per bundle & on other reference types. Could use some eyes. Patch forthcoming.

Comments

jpstrikesback’s picture

StatusFileSize
new3.03 KB

And the patch.

jpstrikesback’s picture

Status: Active » Needs review
jpstrikesback’s picture

Title: Add term, user, and node reference fields and per bundle tokens » Add term, user, and node reference fields and per bundle properties
jsacksick’s picture

Issue summary: View changes
Status: Needs review » Needs work

I didn't add per bundle properties, if you want that, I think you should do something like the following code :

$info[$target]['properties']['bundles'][$bundle].

However I added support for other entity types, it should also works for commerce_product_reference etc.

jantoine’s picture

Version: » 7.x-1.x-dev
Status: Needs work » Needs review
StatusFileSize
new2.94 KB

It seems like jpstrikesback original request was for source specific backreference fields where as jsacksick suggestion in #4 would address target specific backreference fields. It just so happens that I created target specific patch. This will help prevent backreference fields from being available on bundles they shouldn't be. I did not tackle the original source specific request as that would require an update hook to rename fields and moving existing data. Patch attached.

jsacksick’s picture

Status: Needs review » Fixed

Committed, thanks!

  • jsacksick committed 4659edf on 7.x-1.x authored by jantoine
    Issue #2061867 by jpstrikesback, jantoine: Add term, user, and node...

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.