By ruriko on
I am using views and I want to put a dynamic link in the header. The link is http://www.example.com/node/add/album/31 The number 31 varies depending which node it is viewing so I want it to change to whatever node id it is viewing. I'm not a coder so can anyone give me code?
Comments
Put something like this in
Put something like this in the view header and save as php making sure you have php filter module installed
Peter J Lord
http://peterjlord.co.uk
Another question. How can I
Another question. How can I make it work if the node url is like this http://www.example.com/series/31/images
More than likely
As the 31 is the second one arg(0) - series, arg(1) - 31, and arg(2) - images
Peter J Lord
http://peterjlord.co.uk