Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: Getting the node number of a space-filled node ID

by jdporter (Paladin)
on Oct 03, 2016 at 16:39 UTC ( [id://1173162]=note: print w/replies, xml ) Need Help??


in reply to Getting the node number of a space-filled node ID

Just to clarify your terms a bit... The numeric node number (e.g. 236794) is the node ID, whereas the texty string (like Chatterbox FAQ) is the node title.

Normally, you'd use two different CGI params for these: node_id in the first case, node in the second case. *

To set those up in shortcuts, you'd do [id://236794] in the first case, [Chatterbox FAQ] in the second. **

(* It's possible to pass a node ID to the node= parameter; the engine is smart enough to figure out that you were probably passing a node ID rather than a title.)

(** When the engine gets a URL with a node= param (like node=Chatterbox FAQ), it's not so much linking directly to "the" node with that title; it's really doing a search for any & all nodes with that title. Only when there is exactly one node with that title does it take you directly to that page.)

I reckon we are the only monastery ever to have a dungeon stuffed with 16,000 zombies.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1173162]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others about the Monastery: (5)
As of 2024-04-24 10:09 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found