I have a view with 5 results limit and a more link to show all nodes. The more link goes to xxx/yyy/123. Number 123 is the nid of node, that listed nodes are referencing to.
On a current page, lets say- xxx/yyy/123 I would like to use another view that can print the name of node with 123 nid.
I tried to set a view using default argument - node id from url and use a field with title but it seems that the number from such url it is not picked up as an argument. Can anybody give some advice? Thank you

1 Answer 1


Views generally gets node id from url when url format seems to be node/nid

For your case, select 'Raw value from URL' in Provide default value section and select path component as 3 as nid lies in 3rd url arg. Your views should be getting the desired nid now.

Hope this helps you. :)

  • Thank you. this solution seems to work for drupal 7, I can not see option - raw value from url. Anyway - I used %1 in field as an argument and it is working as expected.
    – loparr
    Commented Jan 13, 2014 at 10:12

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.