[support] How do I identify Node IDs?

J-P Stacey jp.stacey at torchbox.com
Mon Oct 1 08:24:52 UTC 2007


Michelle Cox wrote:
>> Is there any setting to display the NID somewhere in the node itself, or
>> maybe a module that provides a "Node info" block containing this
>> crucial piece of information?
 >
> I just hover over the edit tab and look at the URL in the status bar.

That works if you're logged in with edit privileges; depending on how much 
the theme has been changed from a good default (e.g. garland) you can also 
detect it when not logged in. With any luck there'll still be a <div> tag 
somewhere of the form:

   <div id="node-NNN" class="node">

where NNN is the node ID. If you've got a view page of multiple nodes, then 
again with a reasonably sane theme you'll get similar HTML for each node.

If you've got Firebug installed on Firefox, and if jQuery is included on the 
page, typing jQuery(".node") in the console will show you a list of any div 
elements of class "node".

Cheers,
J-P


More information about the support mailing list