By stacysimpson on
Well, I've read numerous posts on this topic. It seems like the latest versions of Drupal support directly accessing the $node object (via PHP) when viewing the node. I've attempted many different ways to acquire the current node ID in PHP, but no success. All the URL-based algorithms seems problematic when viewing nodes using different methods (I.e. views, etc.).
Contemplate displays the $node->nid value when enforced.
DynamicField also displays the NID value when setup.
However, I need the pass the current node ID to a ViewReference field. Can anyone shed any light?