title: in drupal 7, how to get node id from url in the view?
body: <p>I want to add a comment form to my view by adding </p>
  
   $node->nid), 'comment'); 
  ?>
  
  <p>however, it shows up a error saying undefined variable $node->nid, then I realize it is a view not a content type</p>
  
  <p>In the view, by choosing the right url, for example, /projects/{username}/{nodeid}, I only show one content.</p>
  
  <p>so I guess I can get the node id by parsing the 3rd argument of the url, so question might be how to get node id from url in the view</p>