In updating for D7, I tried to figure out how in the world we would use the built-in token support. As far as I can tell, there is no way to exercise it, as no event that I'm familiar with is likely to have a single Amazon_item instance available to it.

Should we just pull out the token code? (both D6 and D7)

Comments

Edward Andrews’s picture

Tokens that you could use to produce auto-titles would be brilliant - there's a (closed) issue here http://drupal.org/node/392524 that tells you how to make auto titles work, but proper tokens would be better!

Edward

rfay’s picture

The problem is: We don't have any situations I know of where you could assume one Amazon Item on a node. How would token choose which item to use? On a node save the code would have to look for items referred to by filter, items referred to in arbitrary cck fields... I'm getting fully convinced here.

@eaton: Do you have anything to say about this?

cwithout’s picture

Assigned: Unassigned » cwithout

Tokens have changed in D7, but skimming the docs, I THINK it's still possible to implement this. I'll work on it.

rfay’s picture

Status: Active » Closed (duplicate)

Looks like you're doing great on #1043030: D6: Improved token support (especially for Automatic Node Titles) - Let's move this over there.