Drupal - Getting node id from view to customise link in block

Posted by hfidgen on Stack Overflow See other posts from Stack Overflow or by hfidgen
Published on 2009-11-03T17:24:45Z Indexed on 2010/04/30 22:07 UTC
Read the original article Hit count: 236

Filed under:
|
|

I got a little problem with Drupal (again) in that I'm trying to work out how I can build a block which is able to show the node ID of the view page the block is currently sitting on.

I'm using views to build a large chunk of my site, but I need to be able to make "intelligent" blocks in PHP mode which will have dynamic content depending on what the view is displaying.

So.. how can I go about finding the $nid which a view is currently displaying?!

Any ideas?

© Stack Overflow or respective owner

Related posts about drupal

Related posts about drupal-6