I'm using Rules to generate a new node automatically (a Transaction Record, a content type I created for my site), whenever a site user creates an Ubercart Product node. I've built a View using fields from the Ubercart Product nodes. Now the bit that stumps me. For each Product in the View, I want to add a link to the related Transaction Record. I can assume that the Transaction Record will always have an [nid] which is one digit higher than the related Ubercart Product node [nid]. Views includes [nid] as a token. But is there any way to make it accept [nid+1} as a token? I'm using Drupal 6.22 and Views 6.x2.12. If you've got a code snippet that works, I'll pay your (reasonable) price.

Comments

naurisr’s picture

Add a Computed Field (http://drupal.org/project/computed_field) to Product content type with value nid+1
Then you will be able to use that field in views