Closed (works as designed)
Project:
Block Title Link [D7]
Version:
7.x-1.1
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Reporter:
Created:
7 Nov 2011 at 16:25 UTC
Updated:
21 Nov 2011 at 20:07 UTC
Hi.
Sorry for my newbie question but I can't figure this out.
How can I use node id in link? I tried [node:nid] but didn't work.
example:
"Title path":
http://www.example.com/getdirections/location/to/[node:nid]
I need to point getdirections module to the id of currently viewed node.
thanx
Comments
Comment #1
ngmaloney commentedThis isn't currently possible with block_titlelink. A block doesn't really know if it is on a node page or not. This might be possible with a patch that conditionally adds the node token if menu_get_object() returns a node. Where this is a feature request I'm going to close ticket.
FWIW, you could probably create a one-off module with a hook_form_alter that inserts the nid.