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

ngmaloney’s picture

Status: Active » Closed (works as designed)

This 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.