I want to get the current item id from k2 and store it to a cookie.
(Of course when i wrote "the current item" I am in the item view of my k2 template.)
How can I get the item ID from K2?
I tried $this->item->id
but seems it's not working.
Any ideas?
Thanks!
It depends where you are. Is it an item view ? If so, $this->item->id should work. I've done it many times.