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.
As a guess for passing in node id, I've tried %nid [nid] Nid but none work.
Searched but cannot find the documentation for this, sorry if it's somewhere obvious!
My actual requirement is not to pass in node id but to pass in a CCK fields as argument if possible...
Comment | File | Size | Author |
---|---|---|---|
#1 | argument to view.png | 52.2 KB | frost |
Comments
Comment #1
frost CreditAttribution: frost commentedJust in case my explanation isn't clear:
I'm using a node reference field
The list of nodes that can be referenced is defined by a view, and that view requires a parameter.
I want the parameter to be the node id of the node i am editing. As seen in the screenshot I'm using Nid, but I've tried other variations on this.
Note that I don't have token installed, maybe I need this?
Comment #2
yched CreditAttribution: yched commentedShort answer is: you cannot.
See :
#334121: Add PHP code textarea for 'views argument' in nodereference.module fields
#196518: Token support for advanced view argument
Comment #3
frost CreditAttribution: frost commentedThanks, at least I'm reassured it wasn't there somewhere obvious staring me in the face and I missed it ;-)
Comment #4
j0nathan CreditAttribution: j0nathan commented"subscribing" for reference
Comment #5
polmaresma CreditAttribution: polmaresma commentedSince whe are in the edit page whe can take the node id directly from url:
http://drupal.org/node/833296#comment-3114718
Thank's for all your work!