Would be great to be able to use the tokens available on the "Default value" field in the "View arguments" field. This would allow us to build forms using, for example, get variables, which would make this module much more powerful.
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | views-reference-token-support-1089564-1.patch | 652 bytes | open social |
Comments
Comment #1
open social commentedI did it, trying to make a patch now
Comment #2
open social commentedMade it, it was my first via git, so let me know if it works!
Comment #3
phyadmin commentedIt should be noted that the patch must be applied to the dev version, as the "release" version has not been updated in quite sometime. :/
The provided patch seems to work, in that it successfully pulls the right nodes from the views. Make sure that you run a Drupal database update (update.php) after upgrading from the "release" version to the dev version, however, or it will not work right (the title will be blank)
Comment #4
johnnydigit commentedI'm not sure if this is only because I've modified the code to use more than just node views, or maybe because I'm using a variant of the %value token, but I ran into problems when viewing completed forms once I started using tokens in arguments. I had to put in a fail over to query the view again without arguments if no data was returned, and add a flag not to use the fail over when actually rendering the form for input.
I'm going through the webform module now to see where I need to add dummy filter calls to initialize the token values.