I just hover over the edit tab and look at the URL in the status bar.
Michelle
On 9/28/2007 12:36:44 PM, Agon S. Buchholz (asb@kefk.net) wrote:
Hi,
every node in Druapl has a Node ID (NID) by which internal handling is managed. Using the NID is also the safest way to link to a node. But how do I identify the NIDs?
At the moment you're installing a tool like "Pathauto" or "Urlify", all NIDs are being hidden from the URL; that's the idea of semantic URLs, but how do I now identify the NIDs, e.g. to create stable links to this node?
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?
Thanks, -asb
-- [ Drupal support list | http://lists.drupal.org/ ]
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