Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Is it possible to create a subset of tokens starting from a tokens type?
I would like to provide my users the possibility to use some of them, but not all of them!
For instance I would like to take 'node' tokens and create one 'node_subset' that allows only to use title, and available cck fields for that content type: is it possible by just altering the 'node' token?
TIA
Comments
Comment #1
gregglesThere's currently no way to do this. You could hide the available tokens by just telling the users to use a subset of the tokens.
Comment #2
upupax CreditAttribution: upupax commentedI found a solution creating my own subset with some custom code.
Thanks, I mark this as fixed.