Perl Monk, Perl Meditation | |
PerlMonks |
Re: Getting the node number of a space-filled node IDby jdporter (Paladin) |
on Oct 03, 2016 at 16:39 UTC ( [id://1173162]=note: print w/replies, xml ) | Need Help?? |
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.
In Section
Perl Monks Discussion
|
|